Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithCosmos

Method
📦 CommunityToolkit.Aspire.Hosting.Floci v13.6.1
func (FlociAzureContainerResource) WithCosmos(options ...*WithCosmosOptions) FlociAzureCosmosResource

Signature

methodWithCosmosbuilder
Adds a Cosmos DB child resource to the Floci Azure emulator
WithCosmos(options ...*WithCosmosOptions) FlociAzureCosmosResource
options...*WithCosmosOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithCosmosOptions argument.

Name*stringThe name of the Cosmos DB resource (default: cosmos).
AccountName*stringThe Cosmos account name segment (default: devstoreaccount1).
FlociAzureCosmosResource

A reference to the IResourceBuilder for further configuration.

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

Applies to

This method applies to the following types: