addCosmosDatabase

Method
📦 Aspire.Hosting.Azure.CosmosDB v17.0.0
interface AzureCosmosDBResource {
// ... omitted for brevity
addCosmosDatabase(
name: string,
databaseName?: string): AzureCosmosDBDatabaseResource;
}

Signature

methodaddCosmosDatabasebuilder
Adds a database to the associated Cosmos DB account resource.
addCosmosDatabase(
name: string,
databaseName?: string): AzureCosmosDBDatabaseResource
namestringThe name of the database resource.
databaseNamestringoptionalThe name of the database. If not provided, this defaults to the same value as `name`.
AzureCosmosDBDatabaseResource

Applies to

This method applies to the following types: