# AzureFunctionsProjectResource.WithHostStorage

- Module: [Aspire.Hosting.Azure.Functions](/reference/api/go/aspire.hosting.azure.functions.md)
- Defined on: [AzureFunctionsProjectResource](/reference/api/go/aspire.hosting.azure.functions/azurefunctionsprojectresource.md)
- Version: `17.0.0`
- Kind: `method`

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

## Definition

```go
type AzureFunctionsProjectResource interface {
    // ... omitted for brevity
    WithHostStorage(storage AzureStorageResource) AzureFunctionsProjectResource
}
```

## Signature

```go
WithHostStorage(storage AzureStorageResource) AzureFunctionsProjectResource
```

## Parameters

- `storage` ([`AzureStorageResource`](/reference/api/go/aspire.hosting.azure.functions/azurestorageresource.md)) -- The resource builder for the Azure Storage resource to be used as host storage.

## Returns

[`AzureFunctionsProjectResource`](/reference/api/go/aspire.hosting.azure.functions/azurefunctionsprojectresource.md) -- The resource builder for the Azure Functions project resource, configured with the specified host storage.

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

## Defined on

- [AzureFunctionsProjectResource](/reference/api/go/aspire.hosting.azure.functions/azurefunctionsprojectresource.md) -- `handle`
