# MicrosoftAzureCosmosSettings Properties

- Package: [Aspire.Microsoft.Azure.Cosmos](/reference/api/csharp/aspire.microsoft.azure.cosmos.md)
- Type: [MicrosoftAzureCosmosSettings](/reference/api/csharp/aspire.microsoft.azure.cosmos/microsoftazurecosmossettings.md)
- Kind: `Properties`
- Members: `6`

The settings relevant to accessing Azure Cosmos DB.

## AccountEndpoint

- Name: `AccountEndpoint`
- Modifiers: `nullable` `get; set`
- Returns: `Uri?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Microsoft.Azure.Cosmos/MicrosoftAzureCosmosSettings.cs)

A `Uri` referencing the Azure Cosmos DB Endpoint. This is likely to be similar to "https://{account_name}.documents.azure.com".

```csharp
public Uri? AccountEndpoint { get; set; }
```

## Remarks

Must not contain shared access signature. Used along with [MicrosoftAzureCosmosSettings.Credential](/reference/api/csharp/aspire.microsoft.azure.cosmos/microsoftazurecosmossettings/properties.md#credential) to establish the connection.

## ConnectionString

- Name: `ConnectionString`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Microsoft.Azure.Cosmos/MicrosoftAzureCosmosSettings.cs)

Gets or sets the connection string of the Azure Cosmos database to connect to.

```csharp
public string? ConnectionString { get; set; }
```

## ContainerName

- Name: `ContainerName`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Microsoft.Azure.Cosmos/MicrosoftAzureCosmosSettings.cs)

Gets or sets the name of the container to connect to.

```csharp
public string? ContainerName { get; set; }
```

## Credential

- Name: `Credential`
- Modifiers: `nullable` `get; set`
- Returns: `TokenCredential?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Microsoft.Azure.Cosmos/MicrosoftAzureCosmosSettings.cs)

Gets or sets the credential used to authenticate to the Azure Cosmos DB endpoint.

```csharp
public TokenCredential? Credential { get; set; }
```

## DatabaseName

- Name: `DatabaseName`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Microsoft.Azure.Cosmos/MicrosoftAzureCosmosSettings.cs)

Gets or sets the name of the database to connect to.

```csharp
public string? DatabaseName { get; set; }
```

## DisableTracing

- Name: `DisableTracing`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Microsoft.Azure.Cosmos/MicrosoftAzureCosmosSettings.cs)

Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.

```csharp
public bool DisableTracing { get; set; }
```
