Azure Databases built-in role

Cosmos DB Account Reader Role

Reads Azure Cosmos DB account and resource metadata and can retrieve read-only account keys. It has no Azure RBAC DataActions, so it does not provide Microsoft Entra-authorized item access; the read-only keys are a separate key-based credential path and must be treated as sensitive.

Role-definition permissions are imported from Microsoft Learn. Practical scope, use cases, prerequisites, best practices, security considerations, assignment guidance, and relationships have been reviewed against the official sources below.

Role definition ID: fbdf93bf-df7d-467e-a4d2-9458aa1360c8

Control-plane actions (7)

Data-plane actions (0)

None — this role grants no data-plane (data access) actions.

Excluded actions (0)

None

Assignable scopes (1)

Practical scope

Assign on an individual Azure Cosmos DB account when the principal needs account visibility or its read-only keys. A resource-group or parent assignment is inherited by every contained account. Native Azure Cosmos DB data-plane roles use account-internal scopes and are assigned separately.

Common use cases (2)

Prerequisites (2)

Best practices (3)

Security considerations (3)

Assignment guidance

Assign Cosmos DB Account Reader Role on one account only when account visibility or read-only key retrieval is approved. Use native Cosmos DB data-plane roles for applications, disable local authentication when possible, and use a custom management reader if key retrieval must be excluded.

Related roles (2)

Common questions

When should I assign the Cosmos DB Account Reader Role Azure role?

Assign Cosmos DB Account Reader Role when you need to: Inspect Azure Cosmos DB account configuration, resource metadata, health, and metrics without changing the account.; and Retrieve a read-only account key for a documented compatibility workflow that cannot yet use Microsoft Entra data-plane authorization.. Practical scope: Assign on an individual Azure Cosmos DB account when the principal needs account visibility or its read-only keys. A resource-group or parent assignment is inherited by every contained account. Native Azure Cosmos DB data-plane roles use account-internal scopes and are assigned separately.

What permissions does the Cosmos DB Account Reader Role Azure role grant?

The role definition grants 7 combined control-plane and data-plane actions. Representative operations include: Microsoft.Authorization/*/read; Microsoft.DocumentDB/*/read; Microsoft.DocumentDB/databaseAccounts/readonlykeys/action; Microsoft.Insights/MetricDefinitions/read; Microsoft.Insights/Metrics/read; and Microsoft.Resources/subscriptions/resourceGroups/read. Review the permission sections above for the complete definition and exclusions.

What are the security risks of the Cosmos DB Account Reader Role Azure role?

Key considerations when assigning Cosmos DB Account Reader Role: The role cannot modify the account and has no DataActions, but its readonlyKeys action can expose a credential for key-authenticated reads.; Key-based authentication is separate from native Cosmos DB data-plane RBAC and bypasses identity-specific data-role assignments while the key remains valid.; and A broad parent assignment enables read-only key retrieval for every inherited Cosmos DB account.. Follow the assignment guidance above and use the narrowest practical scope.

Editorial sources (5)

Official Microsoft Learn documentation →