Udostępnij za pośrednictwem


AzureStorageExtensions.AddAzureStorage Method

Definition

Overloads

AddAzureStorage(IDistributedApplicationBuilder, String)

Adds an Azure Storage resource to the application model. This resource can be used to create Azure blob, table, and queue resources.

AddAzureStorage(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureStorageResource>,ResourceModuleConstruct,StorageAccount>)

Adds an Azure Storage resource to the application model.This resource can be used to create Azure blob, table, and queue resources.

AddAzureStorage(IDistributedApplicationBuilder, String)

Source:
AzureStorageExtensions.cs
Source:
AzureStorageExtensions.cs

Adds an Azure Storage resource to the application model. This resource can be used to create Azure blob, table, and queue resources.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource> AddAzureStorage (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddAzureStorage : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource>
<Extension()>
Public Function AddAzureStorage (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of AzureStorageResource)

Parameters

builder
IDistributedApplicationBuilder

The builder for the distributed application.

name
String

The name of the resource.

Returns

Applies to

AddAzureStorage(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureStorageResource>,ResourceModuleConstruct,StorageAccount>)

Source:
AzureStorageExtensions.cs

Adds an Azure Storage resource to the application model.This resource can be used to create Azure blob, table, and queue resources.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource> AddAzureStorage (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource>,Aspire.Hosting.ResourceModuleConstruct,Azure.Provisioning.Storage.StorageAccount>? configureResource);
static member AddAzureStorage : Aspire.Hosting.IDistributedApplicationBuilder * string * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource>, Aspire.Hosting.ResourceModuleConstruct, Azure.Provisioning.Storage.StorageAccount> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource>
<Extension()>
Public Function AddAzureStorage (builder As IDistributedApplicationBuilder, name As String, configureResource As Action(Of IResourceBuilder(Of AzureStorageResource), ResourceModuleConstruct, StorageAccount)) As IResourceBuilder(Of AzureStorageResource)

Parameters

builder
IDistributedApplicationBuilder

The builder for the distributed application.

name
String

The name of the resource.

configureResource
Action<IResourceBuilder<AzureStorageResource>,ResourceModuleConstruct,StorageAccount>

Callback to configure the underlying StorageAccount resource.

Returns

Applies to