# Aspire.Hosting.Azure.CosmosDB

- Module: `Aspire.Hosting.Azure.CosmosDB`
- Version: `13.4.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `11`
- Types: `4`

## Types

- [AzureCosmosDBContainerResource](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurecosmosdbcontainerresource.md) -- `handle` - 0 members
- [AzureCosmosDBDatabaseResource](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurecosmosdbdatabaseresource.md) -- `handle` - 1 members
- [AzureCosmosDBEmulatorResource](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurecosmosdbemulatorresource.md) -- `handle` - 4 members
- [AzureCosmosDBResource](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurecosmosdbresource.md) -- `handle` - 5 members

## Functions

- [addAzureCosmosDB](/reference/api/typescript/aspire.hosting.azure.cosmosdb/addazurecosmosdb.md) -- `method` -- Adds an Azure Cosmos DB connection to the application model.
- [addContainer](/reference/api/typescript/aspire.hosting.azure.cosmosdb/addcontainer.md) -- `method` -- Adds an Azure Cosmos DB container resource
- [addCosmosDatabase](/reference/api/typescript/aspire.hosting.azure.cosmosdb/addcosmosdatabase.md) -- `method` -- Adds a database to the associated Cosmos DB account resource.
- [runAsEmulator](/reference/api/typescript/aspire.hosting.azure.cosmosdb/runasemulator.md) -- `method` -- Configures the Azure Cosmos DB resource to run using the local emulator
- [runAsPreviewEmulator](/reference/api/typescript/aspire.hosting.azure.cosmosdb/runaspreviewemulator.md) -- `method` -- Configures the Azure Cosmos DB resource to run using the preview emulator
- [withAccessKeyAuthentication](/reference/api/typescript/aspire.hosting.azure.cosmosdb/withaccesskeyauthentication.md) -- `method` -- Configures Azure Cosmos DB to use access key authentication
- [withDataExplorer](/reference/api/typescript/aspire.hosting.azure.cosmosdb/withdataexplorer.md) -- `method` -- Configures the Azure Cosmos DB preview emulator to expose the Data Explorer endpoint.
- [withDataVolume](/reference/api/typescript/aspire.hosting.azure.cosmosdb/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to an Azure Cosmos DB emulator resource.
- [withDefaultAzureSku](/reference/api/typescript/aspire.hosting.azure.cosmosdb/withdefaultazuresku.md) -- `method` -- Configures the Azure Cosmos DB resource to be deployed use the default SKU provided by Azure.
- [withGatewayPort](/reference/api/typescript/aspire.hosting.azure.cosmosdb/withgatewayport.md) -- `method` -- Configures the gateway port for the Azure Cosmos DB emulator.
- [withPartitionCount](/reference/api/typescript/aspire.hosting.azure.cosmosdb/withpartitioncount.md) -- `method` -- Configures the partition count for the Azure Cosmos DB emulator.
