Azure Functions resource types for Aspire.
$ dotnet add package Aspire.Hosting.Azure.FunctionsProvides methods to the Aspire hosting model for Azure functions.
In your AppHost project, install the Aspire Azure Functions Hosting library with NuGet:
dotnet add package Aspire.Hosting.Azure.Functions
Add a reference to the .NET-based Azure Functions project in your AppHost project.
dotnet add reference ..\Company.FunctionApp\Company.FunctionApp.csproj
In the AppHost.cs file of AppHost, use the AddAzureFunctionsProject to configure the Functions project resource.
using Aspire.Hosting;
using Aspire.Hosting.Azure;
using Aspire.Hosting.Azure.Functions;
var builder = new DistributedApplicationBuilder();
var storage = builder.AddAzureStorage("storage").RunAsEmulator();
var queue = storage.AddQueues("queue");
var blob = storage.AddBlobs("blob");
builder.AddAzureFunctionsProject<Projects.Company_FunctionApp>("my-functions-project")
.WithReference(queue)
.WithReference(blob);
var app = builder.Build();
app.Run();