-
Notifications
You must be signed in to change notification settings - Fork 19
Error when deploy to Azure #36
Comments
@mgwilliam Hi I got the same issue and the following response from console "You can pass --force to update your Azure app with 'None' as a 'FUNCTIONS_WORKER_RUNTIME'" So just add -- force
Should work But then I got error like this. And my function is not working I got 503 |
@alexanderbikk, the instructions are pretty clear the runtime needs to be set to "dotnet-isolated". Maybe I'm missing something obvious on why it would be set to None. |
@chris-oswald Actually you are right and the runtime should be dotnet-isoleated. But why during deployment I got the error that my local runtime is set to "None"? This is the issue I believe So If I use --force it allows to publish but the function will not working obviously. My bad. |
@alexanderbikk , on the local dev side you need to run "func host start --verbose". I use visual studio and the debugger doesn't work from the IDE. The command above works for me - it's in the readme docs for more details. |
@chris-oswald I don't have a problem with local deployment. I have the same issue that @mgwilliam has when deploying the function to Azure. Please check my screenshot above. Azure Functions Core Tools
|
@alexanderbikk sorry for not paying attention. Did you get your .Net 5 app running in Azure? |
Just read my previous post :) I did it, just make sure that your local.settigs.json is copied to publish directory and publish to Azure will be succeeded. This was my mistake and I believe @mgwilliam got the same issue. |
I think |
I've followed the instructions in the README to deploy to Azure (UK South)
When I run this command:
I get this warning:
Undeterred, I carried on and when I run this command:
I get this error:
My local settings is identical to the one in this repo - the runtime is set to
dotnet-isolated
I have this version of Azure Functions Core Tools:
Has anyone been able to deploy to Azure?
The text was updated successfully, but these errors were encountered: