How Do You Connect to Azure Cosmos DB Without Account Keys? @AzureCosmosDB
How Do You Connect to Azure Cosmos DB Without Account Keys?  @AzureCosmosDB
Uploaded October 2026 | Updated November 2026, 23 hours ago
Connect to Azure Cosmos DB without account keys by using a managed identity with Microsoft Entra ID and assigning it an Azure Cosmos DB data-plane RBAC role. Your application uses the account endpoint and DefaultAzureCredential to authenticate with a token instead of a key-based connection string.

In this two-minute explainer, Patty Chow shows how identity-based access works for Azure Cosmos DB for NoSQL, including a point read without account keys.

• Which role does your application need?
Use the Azure Cosmos DB Built-in Data Reader role for reads or Built-in Data Contributor when writes are required. Scope access to the database or container the application uses.

• Why isn’t the Azure Contributor role enough?
Azure Contributor grants control-plane permissions to manage Azure resources. It does not grant Microsoft Entra ID access to items inside a container. That requires an Azure Cosmos DB data-plane role.

• How should you configure the SDK?
Create a CosmosClient with your account endpoint and DefaultAzureCredential, then reuse it throughout the application’s lifetime.

• When should you disable key-based access?
After every client has switched to Microsoft Entra ID, disable local authentication on the account.

Speaker: Patty Chow

Learn how to configure role-based access:
learn.microsoft.com/azure/cosmos-db/how-to-connect-role-based-access-control?pivots=azure-cli

#AzureCosmosDB #ManagedIdentity #RBAC #Security #Azure
How Do You Connect to Azure Cosmos DB Without Account Keys?Build Intelligent Apps with Cosmos DB in Microsoft FabricChoosing the Right Partition Key #azurecosmosdb #pythonUnleashing Serverless AI: Building Intelligent Apps with AzureScalable AI with Azure Cosmos DBCode with Cosmos Series TrailerError Logging with Azure Cosmos DB  #azurecosmosdb #pythonStale Embeddings Hurt Search Quality in RAG: How to Fix ItKirill Gavrylyuk invites you to Azure Cosmos DB Conf 2026.  #azurecosmosdbBuild AI Tooling in Go with the MCP SDK – Connecting AI Apps to DatabasesWhy use multiple AI agents instead of just one? 🤔  #azurecosmosdb #aiHow Does the Transactional Outbox Pattern Work in Azure Cosmos DB?
Azure Cosmos DB |

How Do You Connect to Azure Cosmos DB Without Account Keys?

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER