AddAzureCosmosDB

Method
📦 Aspire.Hosting.Azure.CosmosDB v17.0.0
func (DistributedApplicationBuilder) 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

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder