Skip to content

Azure Cosmos DB 凭据#

¥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 密钥

¥API Key

相关资源#

¥Related resources

有关服务的更多信息,请参阅 Azure Cosmos DB API 文档

¥Refer to Azure Cosmos DB's API documentation for more information about the service.

使用 API 密钥#

¥Using API Key

要配置此凭据,你需要:

¥To configure this credential, you'll need:

  • 账户:你的 Azure Cosmos DB 账户的名称。

¥An Account: The name of your Azure Cosmos DB account.

  • 密钥:Azure Cosmos DB 账户的密钥。在 Azure 门户中,选择“概览”>“密钥”,查看你的 Azure Cosmos DB。你可以使用两个账户密钥中的任何一个来实现此目的。

¥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.

  • 数据库:要连接的 Azure Cosmos DB 数据库的名称。

¥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

以下是 Azure Cosmos DB 凭据的已知常见错误和问题。

¥Here are the known common errors and issues with Azure Cosmos DB credentials.

Need admin approval#

When attempting to add credentials for a Microsoft360 or Microsoft Entra account, users may see a message when following the procedure that this action requires admin approval.

This message will appear when the account attempting to grant permissions for the credential is managed by a Microsoft Entra. In order to issue the credential, the administrator account needs to grant permission to the user (or "tenant") for that application.

The procedure for this is covered in the Microsoft Entra documentation.