Share via


AzureStorageExtensions.WithDataBindMount Method

Definition

Adds a bind mount for the data folder to an Azure Storage emulator resource.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageEmulatorResource> WithDataBindMount (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageEmulatorResource> builder, string? path = default, bool isReadOnly = false);
static member WithDataBindMount : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageEmulatorResource> * string * bool -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageEmulatorResource>
<Extension()>
Public Function WithDataBindMount (builder As IResourceBuilder(Of AzureStorageEmulatorResource), Optional path As String = Nothing, Optional isReadOnly As Boolean = false) As IResourceBuilder(Of AzureStorageEmulatorResource)

Parameters

path
String

Relative path to the AppHost where emulator storage is persisted between runs. Defaults to the path '.azurite/{builder.Resource.Name}'

isReadOnly
Boolean

A flag that indicates if this is a read-only mount.

Returns

A builder for the AzureStorageEmulatorResource.

Applies to