How to Give Your Account Access to Azure Cosmos DB Data with the Azure CLI
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.
