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