aspire-samples icon indicating copy to clipboard operation
aspire-samples copied to clipboard

Example: Azure Functions 🌩️

Open josephaw1022 opened this issue 2 years ago • 3 comments

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/

josephaw1022 avatar Dec 03 '23 18:12 josephaw1022

Got an example working locally

image

image

josephaw1022 avatar Dec 03 '23 19:12 josephaw1022

You can track the work item here https://github.com/dotnet/aspire/issues/920

davidfowl avatar Dec 03 '23 20:12 davidfowl

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: image

  • logs cannot be read within Aspire dashboard,

  • VS hangs waiting the end of "Launching local Function process" image

  • All function process attempt to bind port 7070 and only the first one run correctly image

I know that Azure functions are currently not supported, but I think that this example could confusing

Dona278 avatar Feb 16 '24 12:02 Dona278