# AzureFunctionsAppResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.Functions](/reference/api/csharp/aspire.hosting.azure.functions.md)
- Version: `17.0.0`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/src/Aspire.Hosting.Azure.Functions/AzureFunctionsResource.cs)
- Inherits: `ExecutableResource`
- Implements: `IResource`, `IResourceWithCustomWithReference<AzureFunctionsAppResource>`, `IResourceWithEndpoints`, `IAzureFunctionsResource`, `IResourceWithServiceDiscovery`

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

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public class AzureFunctionsAppResource
    : Aspire.Hosting.ApplicationModel.ExecutableResource,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithCustomWithReference<Aspire.Hosting.Azure.AzureFunctionsAppResource>,
      Aspire.Hosting.ApplicationModel.IResourceWithEndpoints,
      Aspire.Hosting.Azure.IAzureFunctionsResource,
      Aspire.Hosting.IResourceWithServiceDiscovery
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting.Azure.Functions/AzureFunctionsAppResource`
- Public instance properties are exported as ATS capabilities.

## 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.

## Constructors

- [AzureFunctionsAppResource(string, string, string, AzureFunctionsLanguage)](/reference/api/csharp/aspire.hosting.azure.functions/azurefunctionsappresource/constructors.md#constructor-string-string-string-azurefunctionslanguage) -- Represents an Azure Functions app resource that is launched from a source directory.

## Properties

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