# AzureStorageEmulatorResource.WithDataBindMount

- Module: [Aspire.Hosting.Azure.Storage](/reference/api/go/aspire.hosting.azure.storage.md)
- Defined on: [AzureStorageEmulatorResource](/reference/api/go/aspire.hosting.azure.storage/azurestorageemulatorresource.md)
- Version: `17.0.0`
- Kind: `method`

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

## Definition

```go
type AzureStorageEmulatorResource interface {
    // ... omitted for brevity
    WithDataBindMount(options ...*WithDataBindMountOptions) AzureStorageEmulatorResource
}
```

## Signature

```go
WithDataBindMount(options ...*WithDataBindMountOptions) AzureStorageEmulatorResource
```

## Parameters

- `options` (`...*WithDataBindMountOptions`) -- optional settings, see [Options](#options)

## Options

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

- `Path` (`*string`) -- Relative path to the AppHost where emulator storage is persisted between runs. Defaults to the path '.azurite/{builder.Resource.Name}'
- `IsReadOnly` (`*bool`) -- A flag that indicates if this is a read-only mount.

## Returns

[`AzureStorageEmulatorResource`](/reference/api/go/aspire.hosting.azure.storage/azurestorageemulatorresource.md) -- A builder for the `AzureStorageEmulatorResource`.

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

## Defined on

- [AzureStorageEmulatorResource](/reference/api/go/aspire.hosting.azure.storage/azurestorageemulatorresource.md) -- `handle`
