AzureCosmosExtensions.WithDataVolume 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.
Adds a named volume for the data folder to an Azure Cosmos DB emulator resource.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource> WithDataVolume (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource> builder, string? name = default);
static member WithDataVolume : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureCosmosDBEmulatorResource>
<Extension()>
Public Function WithDataVolume (builder As IResourceBuilder(Of AzureCosmosDBEmulatorResource), Optional name As String = Nothing) As IResourceBuilder(Of AzureCosmosDBEmulatorResource)
Parameters
The builder for the AzureCosmosDBEmulatorResource.
- name
- String
The name of the volume. Defaults to an auto-generated name based on the application and resource names.
Returns
A builder for the AzureCosmosDBEmulatorResource.