addCosmosDatabase
Method
interface AzureCosmosDBResource { // ... omitted for brevity addCosmosDatabase( name: string, databaseName?: string): AzureCosmosDBDatabaseResource;}Signature
method
addCosmosDatabase builderAdds a database to the associated Cosmos DB account resource.
addCosmosDatabase( name: string, databaseName?: string): AzureCosmosDBDatabaseResourceParameters
namestringThe name of the database resource.databaseName stringoptionalThe name of the database. If not provided, this defaults to the same value as `name`.Returns
AzureCosmosDBDatabaseResource Applies to
This method applies to the following types: