AzureCosmosExtensions.WithPartitionCount Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures the partition count for the Azure Cosmos DB emulator.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource> WithPartitionCount (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource> builder, int count);
static member WithPartitionCount : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource> * int -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource>
<Extension()>
Public Function WithPartitionCount (builder As IResourceBuilder(Of AzureCosmosDBEmulatorResource), count As Integer) As IResourceBuilder(Of AzureCosmosDBEmulatorResource)
Parameters
Builder for the Cosmos emulator container
- count
- Int32
Desired partition count.
Returns
Cosmos emulator resource builder.
Remarks
Not calling this method will result in the default of 25 partitions. The actual started partitions is always one more than specified. See this documentation about setting the partition count.