# AzureFunctionsAppResource

- Module: [Aspire.Hosting.Azure.Functions](/reference/api/go/aspire.hosting.azure.functions.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents an Azure Functions app resource that is launched from a source directory.

## Remarks

This resource is intended for Azure Functions apps that are not represented by a .NET project file,
such as TypeScript or JavaScript Functions apps that run on the Node language worker.

## Definition

```go
type AzureFunctionsAppResource interface {
    IComputeResource
    Resource
    ResourceWithArgs
    ResourceWithEndpoints
    ResourceWithEnvironment
    ResourceWithWaitSupport
}
```

## Embeds

- `IComputeResource`
- `Resource`
- `ResourceWithArgs`
- `ResourceWithEndpoints`
- `ResourceWithEnvironment`
- `ResourceWithWaitSupport`

## Properties

- `AppDirectory`: `string` `get` -- Gets the directory that contains the Azure Functions app.
- `Language`: [`AzureFunctionsLanguage`](/reference/api/go/aspire.hosting.azure.functions/azurefunctionslanguage.md) `get` -- Gets the authoring language used by the Azure Functions app.
- `WorkerRuntime`: `string` `get` -- Gets the Azure Functions worker runtime for the app.

## Methods

- [WithHostStorage](/reference/api/go/aspire.hosting.azure.functions/azurefunctionsappresource/withhoststorage.md) -- `method` -- Configures the Azure Functions app resource to use the specified Azure Storage resource as its host storage.
  ```go
  WithHostStorage(storage AzureStorageResource) AzureFunctionsAppResource
  ```
