azure – Can't publish Function App to Linux, fails with http status code Unauthorized – Stack Overflow


I am trying to publish a C# Function App to a Linux machine in Azure using VS2022.
The same function App can be published to a Windows machine without any problems.

I have followed the advice of the people answering the question below:
Publish Function App to azure zipdeploy failed with HTTP status code Unauthorized
and I have tried this fix: https://github.com/Azure/azure-functions-dotnet-worker/issues/2502

  • Basic Authentication was turned on while deploying the function app.
    turned on
  • Run from package is turned on
    run from package
  • I created a fresh publish profile after checking these settings.
  • Disabeled Access-Control-Allow-Credentials
  • Removed any allowed Origins
    enter image description here

I do get this notification whan trying to publish:

enter image description here

I think this doesnt have anything to do with the authorization for publishing.

I am not sure what to try next.

Leave a Reply

Your email address will not be published. Required fields are marked *