addAzureCosmosDB
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addAzureCosmosDB(name: string): AzureCosmosDBResource;}Signature
method
addAzureCosmosDB builderAdds an Azure Cosmos DB connection to the application model.
addAzureCosmosDB(name: string): AzureCosmosDBResourceParameters
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.Returns
AzureCosmosDBResource Applies to
This method applies to the following types: