Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AzureStorageEmulatorResource

Handle
📦 Aspire.Hosting.Azure.Storage v17.0.0
type AzureStorageEmulatorResource interface {
IComputeResource
Resource
ResourceWithArgs
ResourceWithEndpoints
ResourceWithEnvironment
ResourceWithWaitSupport
}

Methods

methodWithApiVersionCheckbuilder
Ensures the emulator checks that the requested API version is valid.
WithApiVersionCheck(options ...*WithApiVersionCheckOptions) AzureStorageEmulatorResource
options...*WithApiVersionCheckOptionsOptional settings, described under Options.

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

Enable*boolWhether to enable API version check or not. Default is true.
AzureStorageEmulatorResource

The resource builder.

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

methodWithBlobPortbuilder
Modifies the host port that the storage emulator listens on for blob requests.
WithBlobPort(port float64) AzureStorageEmulatorResource
portfloat64Host port to use.
AzureStorageEmulatorResource

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

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().

methodWithDataVolumebuilder
Adds a named volume for the data folder to an Azure Storage emulator resource.
WithDataVolume(options ...*WithDataVolumeOptions) AzureStorageEmulatorResource
options...*WithDataVolumeOptionsOptional settings, described under Options.

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

Name*stringThe name of the volume. Defaults to an auto-generated name based on the application and resource names.
IsReadOnly*boolA flag that indicates if this is a read-only volume.
AzureStorageEmulatorResource

A builder for the AzureStorageEmulatorResource.

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

methodWithQueuePortbuilder
Modifies the host port that the storage emulator listens on for queue requests.
WithQueuePort(port float64) AzureStorageEmulatorResource
portfloat64Host port to use.
AzureStorageEmulatorResource

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

methodWithTablePortbuilder
Modifies the host port that the storage emulator listens on for table requests.
WithTablePort(port float64) AzureStorageEmulatorResource
portfloat64Host port to use.
AzureStorageEmulatorResource

The resource builder.

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