Public Preview: .NET Aspire support for Azure Functions projects
.NET Aspire is an opinionated stack that simplifies development of distributed applications in the cloud. You can now enlist Azure Functions projects using .NET on the isolated worker model into Aspire orchestrations using preview support. This equips teams author event-driven functions as part of your microservice solutions in Aspire. Those functions can then take advantage of .NET Aspire’s features around service discovery, OpenTelemetry, and more.
The Aspire.Hosting.Azure.Functions NuGet package allows you to reference Functions projects from Aspire app host projects. You can then use additional Aspire integrations to configure triggers and bindings for Azure Blobs, Azure Queues, Azure Event Hubs, and Azure Service Bus.
This integration can be used by projects targeting .NET 8 and .NET 9. Please note that when deploying the Aspire solution to Azure, Functions projects are deployed as Azure Container Apps resources without event-driven scaling.