addAzureCosmosDB

Method
📦 Aspire.Hosting.Azure.CosmosDB v17.0.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addAzureCosmosDB(name: string): AzureCosmosDBResource;
}

Signature

methodaddAzureCosmosDBbuilder
Adds an Azure Cosmos DB connection to the application model.
addAzureCosmosDB(name: string): AzureCosmosDBResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
AzureCosmosDBResource

Applies to

This method applies to the following types: