Azure Cosmos DB credentials#
You can use these credentials to authenticate the following nodes:
Prerequisites#
- Create an Azure subscription.
- Create an Azure Cosmos DB account.
Supported authentication methods#
- API Key
Related resources#
Refer to Azure Cosmos DB's API documentation for more information about the service.
Using API Key#
To configure this credential, you'll need:
- An Account: The name of your Azure Cosmos DB account.
- A Key: A key for your Azure Cosmos DB account. Select Overview > Keys in the Azure portal for your Azure Cosmos DB. You can use either of the two account keys for this purpose.
- A Database: The name of the Azure Cosmos DB database to connect to.
Refer to Get your primary key | Microsoft for more detailed steps.
Common issues#
Here are the known common errors and issues with Azure Cosmos DB credentials.
需要管理员批准#
在尝试为 Microsoft365 或 Microsoft Entra 账户添加凭据时,用户在执行程序时可能会看到此操作需要管理员批准的消息。
当尝试为凭据授予权限的账户由 Microsoft Entra 管理时,将出现此消息。为了颁发凭据,管理员账户需要为该应用程序向用户(或"租户")授予权限。
此程序在 Microsoft Entra 文档中有详细说明。