AzureStorageExtensions.RunAsEmulator Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures an Azure Storage resource to be emulated using Azurite. This resource requires an AzureStorageResource to be added to the application model. This version the package defaults to version 3.29.0 of the mcr.microsoft.com/azure-storage/azurite container image.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource> RunAsEmulator (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource> builder, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageEmulatorResource>>? configureContainer = default);
static member RunAsEmulator : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource> * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageEmulatorResource>> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource>
<Extension()>
Public Function RunAsEmulator (builder As IResourceBuilder(Of AzureStorageResource), Optional configureContainer As Action(Of IResourceBuilder(Of AzureStorageEmulatorResource)) = Nothing) As IResourceBuilder(Of AzureStorageResource)
Parameters
- builder
- IResourceBuilder<AzureStorageResource>
The Azure storage resource builder.
- configureContainer
- Action<IResourceBuilder<AzureStorageEmulatorResource>>
Callback that exposes underlying container used for emulation to allow for customization.
Returns
A reference to the IResourceBuilder<T>.