Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDataBindMount

Method
📦 Aspire.Hosting.Azure.Storage v17.0.0
func (AzureStorageEmulatorResource) WithDataBindMount(options ...*WithDataBindMountOptions) AzureStorageEmulatorResource

Signature

methodWithDataBindMountbuilder
Adds a bind mount for the data folder to an Azure Storage emulator resource.
WithDataBindMount(options ...*WithDataBindMountOptions) AzureStorageEmulatorResource
options...*WithDataBindMountOptionsOptional settings, described under Options.

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

Path*stringRelative path to the AppHost where emulator storage is persisted between runs. Defaults to the path '.azurite/{builder.Resource.Name}'
IsReadOnly*boolA flag that indicates if this is a read-only mount.
AzureStorageEmulatorResource

A builder for the AzureStorageEmulatorResource.

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

Applies to

This method applies to the following types: