Example: Azure Functions 🌩️
I'd like to propose the inclusion of Azure Functions projects as examples within the Aspire framework. This addition would be particularly beneficial for developers and aligns well with the cloud-native direction of Aspire.
Given that both the SDK and runtime for Azure Functions are open-source, integrating them as first-class citizens in the Aspire ecosystem seems a natural fit. Such integration would not only enhance the current offerings of Aspire but also provide practical, cloud-native examples that developers can leverage in their projects.
https://azure.microsoft.com/en-us/updates/ga-azure-functions-supports-net-8-in-the-isolated-worker-model/
Got an example working locally
You can track the work item here https://github.com/dotnet/aspire/issues/920
I tried to launch azure functions with the latest preview4 and I noticed that the current behavior seems different from what I read here.
-
Function projects will be lauched as separated terminals:
-
logs cannot be read within Aspire dashboard,
-
VS hangs waiting the end of "Launching local Function process"
-
All function process attempt to bind port 7070 and only the first one run correctly
I know that Azure functions are currently not supported, but I think that this example could confusing