AzureFunctionsProjectResourceExtensions.WithHostStorage Method

Definition

Configures the Azure Functions project resource to use the specified Azure Storage resource as its host storage.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureFunctionsProjectResource> WithHostStorage (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureFunctionsProjectResource> builder, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource> storage);
static member WithHostStorage : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureFunctionsProjectResource> * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureStorageResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureFunctionsProjectResource>
<Extension()>
Public Function WithHostStorage (builder As IResourceBuilder(Of AzureFunctionsProjectResource), storage As IResourceBuilder(Of AzureStorageResource)) As IResourceBuilder(Of AzureFunctionsProjectResource)

Parameters

builder
IResourceBuilder<AzureFunctionsProjectResource>

The resource builder for the Azure Functions project resource.

storage
IResourceBuilder<AzureStorageResource>

The resource builder for the Azure Storage resource to be used as host storage.

Returns

The resource builder for the Azure Functions project resource, configured with the specified host storage.

Applies to