# AzureFunctionsAppResource

- Module: [Aspire.Hosting.Azure.Functions](/reference/api/typescript/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.

## Definition

```typescript
interface AzureFunctionsAppResource
  extends IComputeResource,
    IResource,
    IResourceWithArgs,
    AzureFunctionsAppResource]],
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport,
    IResourceWithServiceDiscovery {
  readonly appDirectory: string;
  readonly language: AzureFunctionsLanguage;
  readonly workerRuntime: string;
  withHostStorage(storage: AzureStorageResource): AzureFunctionsAppResource;
}
```

## Properties

- `appDirectory`: `string` `get` -- Gets the directory that contains the Azure Functions app.
- `language`: [AzureFunctionsLanguage](/reference/api/typescript/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/typescript/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.
    ```typescript
  withHostStorage(storage: AzureStorageResource): AzureFunctionsAppResource
  ```
