addAzureFunctionsApp

Method
📦 Aspire.Hosting.Azure.Functions v17.0.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
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

Applies to

This method applies to the following types: