# AddAzureFunctionsProject

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

Adds an Azure Functions project to the distributed application.

## Definition

```go
func (DistributedApplicationBuilder) AddAzureFunctionsProject(
    name string,
    projectPath string,
) AzureFunctionsProjectResource
```

## Parameters

- `name` (`string`) -- The name to be associated with the Azure Functions project. This name will be used for service discovery when referenced in a dependency.
- `projectPath` (`string`) -- The path to the Azure Functions project file.

## Returns

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

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

## Applies to

- `DistributedApplicationBuilder`
