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

C#
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource> AddAzureStorage(this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);

Parameters

builder
IDistributedApplicationBuilder

The builder for the distributed application.

name
String

The name of the resource.

Returns

Applies to

.NET Aspire 9.1.0 and other versions
Product Versions
.NET Aspire 8.0.0, 9.0.0, 9.1.0

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.

C#
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);

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

.NET Aspire 8.0.0
Product Versions
.NET Aspire 8.0.0