# MicrosoftAzureCosmosSettings

- Kind: `class`
- Package: [Aspire.Microsoft.Azure.Cosmos](/reference/api/csharp/aspire.microsoft.azure.cosmos.md)
- Version: `13.4.0`
- Namespace: `Aspire.Microsoft.Azure.Cosmos`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Microsoft.Azure.Cosmos/MicrosoftAzureCosmosSettings.cs)

The settings relevant to accessing Azure Cosmos DB.

## Definition

```csharp
namespace Aspire.Microsoft.Azure.Cosmos;

public sealed class MicrosoftAzureCosmosSettings
{
    // ...
}
```

## Constructors

- [MicrosoftAzureCosmosSettings](/reference/api/csharp/aspire.microsoft.azure.cosmos/microsoftazurecosmossettings/constructors.md#constructor)

## Properties

- [AccountEndpoint](/reference/api/csharp/aspire.microsoft.azure.cosmos/microsoftazurecosmossettings/properties.md#accountendpoint) : `Uri?` `get; set` -- A `Uri` referencing the Azure Cosmos DB Endpoint. This is likely to be similar to "https://{account_name}.documents.azure.com".
- [ConnectionString](/reference/api/csharp/aspire.microsoft.azure.cosmos/microsoftazurecosmossettings/properties.md#connectionstring) : `string?` `get; set` -- Gets or sets the connection string of the Azure Cosmos database to connect to.
- [ContainerName](/reference/api/csharp/aspire.microsoft.azure.cosmos/microsoftazurecosmossettings/properties.md#containername) : `string?` `get; set` -- Gets or sets the name of the container to connect to.
- [Credential](/reference/api/csharp/aspire.microsoft.azure.cosmos/microsoftazurecosmossettings/properties.md#credential) : `TokenCredential?` `get; set` -- Gets or sets the credential used to authenticate to the Azure Cosmos DB endpoint.
- [DatabaseName](/reference/api/csharp/aspire.microsoft.azure.cosmos/microsoftazurecosmossettings/properties.md#databasename) : `string?` `get; set` -- Gets or sets the name of the database to connect to.
- [DisableTracing](/reference/api/csharp/aspire.microsoft.azure.cosmos/microsoftazurecosmossettings/properties.md#disabletracing) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
