Skip to content

CosmosOptions.ConfigureCosmosClient(string, AzureKeyCredential)

ConfigureCosmosClient(string, AzureKeyCredential)

View source
public void ConfigureCosmosClient(string accountEndpoint, AzureKeyCredential authKeyOrResourceTokenCredential)
Configures the Cosmos DB client.

Parameters

accountEndpointstring
The account endpoint. In the form of
https://{databaseaccount}.documents.azure.com:443/
, https://learn.microsoft.com/rest/api/cosmos-db/cosmosdb-resource-uri-syntax-for-rest
authKeyOrResourceTokenCredentialAzureKeyCredential
Azure.AzureKeyCredential with master-key or resource token.