Watch Aspire live streamsDocsTry Aspire

FlociAzureContainerResource.withCosmos

Method
📦 CommunityToolkit.Aspire.Hosting.Floci v13.6.1
interface FlociAzureContainerResource {
// ... omitted for brevity
withCosmos(
name?: string,
accountName?: string): FlociAzureCosmosResource;
}

Signature

methodwithCosmosbuilder
Adds a Cosmos DB child resource to the Floci Azure emulator
withCosmos(
name?: string,
accountName?: string): FlociAzureCosmosResource
namestringoptional= cosmosThe name of the Cosmos DB resource (default: `cosmos`).
accountNamestringoptionalThe Cosmos account name segment (default: `devstoreaccount1`).
FlociAzureCosmosResource

Defined on

This method is defined on the following type: