Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithPartitionCount

Method
📦 Aspire.Hosting.Azure.CosmosDB v17.0.0
func (AzureCosmosDBEmulatorResource) WithPartitionCount(count float64) AzureCosmosDBEmulatorResource

Signature

methodWithPartitionCountbuilder
Configures the partition count for the Azure Cosmos DB emulator.
WithPartitionCount(count float64) AzureCosmosDBEmulatorResource
countfloat64Desired partition count.
AzureCosmosDBEmulatorResource

Cosmos emulator resource builder.

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

Applies to

This method applies to the following types: