Skip to content
Docs Try Aspire

MicrosoftAzureCosmosSettings Properties

Class Properties 6 members
The settings relevant to accessing Azure Cosmos DB.
AccountEndpoint Section titled AccountEndpoint nullable Uri?
A Uri referencing the Azure Cosmos DB Endpoint. This is likely to be similar to "https://{account_name}.documents.azure.com".
public Uri? AccountEndpoint { get; set; }
Must not contain shared access signature. Used along with MicrosoftAzureCosmosSettings.Credential to establish the connection.
ConnectionString Section titled ConnectionString nullable string?
Gets or sets the connection string of the Azure Cosmos database to connect to.
public string? ConnectionString { get; set; }
ContainerName Section titled ContainerName nullable string?
Gets or sets the name of the container to connect to.
public string? ContainerName { get; set; }
Credential Section titled Credential nullable TokenCredential?
Gets or sets the credential used to authenticate to the Azure Cosmos DB endpoint.
public TokenCredential? Credential { get; set; }
DatabaseName Section titled DatabaseName nullable string?
Gets or sets the name of the database to connect to.
public string? DatabaseName { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
public bool DisableTracing { get; set; }