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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With