Skip to main content

8 posts tagged with "Azure Cosmos DB"

Azure Cosmos DB, Microsoft's NoSQL Database Service, and Its Tools

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.

Fixed: The Newtonsoft.Json package must be explicitly referenced with version >= 10.0.2

· 6 min read
Jagdish Kumawat
Founder @ Dewiride

I added the Azure Cosmos DB .NET SDK to a project, and the build failed before any of my code was compiled: The Newtonsoft.Json package must be explicitly referenced with version >= 10.0.2. The SDK uses Newtonsoft.Json but leaves the package to you. An application fixes it by referencing Newtonsoft.Json itself, at version 13.0.4.