Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AzureStorageEmulatorResource.WithDataBindMount

Method
📦 Aspire.Hosting.Azure.Storage v17.0.0
type AzureStorageEmulatorResource interface {
// ... omitted for brevity
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().

Defined on

This method is defined on the following type: