Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are no functions detected after upgrading to dotnet-isolated in my azure functions app

I'm trying to deploy an app that needs .net 5 functionality and thus dotnet-isolated. However after changing my FUNCTIONS_WORKER_RUNTIME setting to dotnet-isolated, adding the appropriate dependencies and program.cs, and publishing a hello world app, no functions are detected on app load. What could be causing this to happen

like image 607
JeffreyABecker Avatar asked Sep 19 '25 09:09

JeffreyABecker


1 Answers

Since the visual studio and other tools are not supported well for function .net 5.0, I suggest you should use Azure Functions Core Tools to publish the azure function .net 5.0.

You can upgrade the existing azure function to .net 5.0 via visual studio as per this doc(Or you can directly create a .net 5.0 function via this link, and then modify your existing function by comparing that one).

After upgrading, run it locally to make sure it can work well. Then use the code below(it's Azure Functions Core Tools) to create a function service:

az functionapp create --resource-group AzureFunctionsQuickstart-rg --consumption-plan-location westeurope --runtime dotnet-isolated --functions-version 3 --name <APP_NAME> --storage-account <STORAGE_NAME>

Then publish it via this command:

func azure functionapp publish <APP_NAME>

For more details, please refer to the official doc.

I upgraded my existing azure function 3.1 to .net 5.0 as per steps above, and it can be published to azure portal successfully.

Please let me know if you still have more issues about it.

like image 181
Ivan Yang Avatar answered Sep 22 '25 06:09

Ivan Yang