Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithHostStorage

Method
📦 Aspire.Hosting.Azure.Functions v17.0.0
func (AzureFunctionsProjectResource) WithHostStorage(storage AzureStorageResource) AzureFunctionsProjectResource

Signature

methodWithHostStoragebuilder
Configures the Azure Functions project resource to use the specified Azure Storage resource as its host storage.
WithHostStorage(storage AzureStorageResource) AzureFunctionsProjectResource
storageAzureStorageResourceThe resource builder for the Azure Storage resource to be used as host storage.
AzureFunctionsProjectResource

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

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: