# AzureCosmosDBDatabaseResource

- Module: [Aspire.Hosting.Azure.CosmosDB](/reference/api/typescript/aspire.hosting.azure.cosmosdb.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface AzureCosmosDBDatabaseResource
  extends IExpressionValue,
    IManifestExpressionProvider,
    IResource,
    IResourceWithConnectionString,
    IResourceWithParent,
    AzureCosmosDBResource]],
    IValueProvider,
    IValueWithReferences,
    IResourceWithAzureFunctionsConfig {
  addContainer(
      name: string,
      partitionKeyPaths: string|string[],
      containerName?: string): AzureCosmosDBContainerResource;
}
```

## Methods

- [addContainer](/reference/api/typescript/aspire.hosting.azure.cosmosdb/azurecosmosdbdatabaseresource/addcontainer.md) -- `method` -- Adds an Azure Cosmos DB container resource
    ```typescript
  addContainer(name: string, partitionKeyPaths: string|string[], containerName?: string): AzureCosmosDBContainerResource
  ```
