Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddAzureFunctionsApp

Method
📦 Aspire.Hosting.Azure.Functions v17.0.0
func (DistributedApplicationBuilder) AddAzureFunctionsApp(
name string,
appDirectory string,
language AzureFunctionsLanguage,
) AzureFunctionsAppResource

Signature

methodAddAzureFunctionsAppbuilder
Adds an Azure Functions app from a source directory to the distributed application.
AddAzureFunctionsApp(
name string,
appDirectory string,
language AzureFunctionsLanguage,
) AzureFunctionsAppResource
namestringThe name to be associated with the Azure Functions app. This name will be used for service discovery when referenced in a dependency.
appDirectorystringThe path to the directory containing the Azure Functions app.
languageAzureFunctionsLanguageThe authoring language used by the Azure Functions app.
AzureFunctionsAppResource

The resource builder.

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

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder