Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddAzureFunctionsProject

Method
📦 Aspire.Hosting.Azure.Functions v17.0.0
func (DistributedApplicationBuilder) AddAzureFunctionsProject(
name string,
projectPath string,
) AzureFunctionsProjectResource

Signature

methodAddAzureFunctionsProjectbuilder
Adds an Azure Functions project to the distributed application.
AddAzureFunctionsProject(
name string,
projectPath string,
) AzureFunctionsProjectResource
namestringThe name to be associated with the Azure Functions project. This name will be used for service discovery when referenced in a dependency.
projectPathstringThe path to the Azure Functions project file.
AzureFunctionsProjectResource

The resource builder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder