Data Access, Keys, and RBAC
Learn what RBAC is and how to use it in Cosmos DB.
Access keys
The primary authentication method in Cosmos DB is the use of access keys. For each account, we can use four different keys:
Two read-only keys
Two read-write keys
Each key can be regenerated individually, and it’s good practice to rotate them every so often. If we use the az cosmosdb keys list
command, we get something like the following:
Get hands-on with 1400+ tech skills courses.