Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Publish Function App to azure zipdeploy failed with HTTP status code Unauthorized

I was able to publish my Function from Visual Studio 2 weeks ago. I made a minor change went to publish and received this error.

The attempt to publish the ZIP file through https://xxxxxxxxxxx.scm.azurewebsites.net/api/zipdeploy failed with HTTP status code Unauthorized.

Any ideas, I know the 2022 VS was upgraded to a new version last week.

like image 311
LJHHouston Avatar asked Mar 28 '26 10:03

LJHHouston


1 Answers

  • Remove the existing publish profile.

enter image description here

  • Create a new publish profile and deploy the function app again.
  • Enable the Basic Authentication in Azure Portal=>Function App=>Settings=>Configuration=>General Settings before deploying the function:

enter image description here

  • I have created and deployed a Http Triggered function to Azure.

Application Settings of my function app:

enter image description here

  • Created a publish profile to Zip Deploy the function to .NET Azure function app.

enter image description here

Portal:

enter image description here

like image 54
Pravallika KV Avatar answered Mar 30 '26 04:03

Pravallika KV