Skip to main content

5 posts tagged with "RBAC"

Role-Based Access Control

View All Tags

How to Give Your Account Access to Azure Cosmos DB Data with the Azure CLI

· 8 min read
Jagdish Kumawat
Founder @ Dewiride

With key-based authentication turned off, an Azure Cosmos DB account only accepts Microsoft Entra ID identities that have a Cosmos DB data role, and that includes the person who created the account. One Azure CLI command gives your account that role, for the whole account, one database or one container.

Fixed: Request blocked by Auth: principal does not have required RBAC permissions to perform action readMetadata

· 8 min read
Jagdish Kumawat
Founder @ Dewiride

I turned off key-based authentication on a new Azure Cosmos DB account, created a database and a container in Data Explorer, and then couldn't open the container: Request blocked by Auth … does not have required RBAC permissions to perform action [Microsoft.DocumentDB/databaseAccounts/readMetadata]. My account could manage the Cosmos DB account, but it had no role on the data. A data-plane role, assigned with one Azure CLI command, fixed it.

How to Assign an Azure RBAC Role in the Portal and Azure CLI (Step-by-Step)

· 18 min read
Jagdish Kumawat
Founder @ Dewiride

Being Owner of an Azure subscription does not let you read a single secret in a Key Vault you just created. The fix is one role assignment — and once you understand its three parts, you can grant exactly the access you mean, to a person or to an app, in about a minute.