Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Publish Profile Download is disabled

I've created a an App Service using the Azure portal and wanted to download the Publish Profile (to import that into Visual Studio). But the download button is disabled. Any suggestions?

enter image description here

like image 797
user1733849 Avatar asked Sep 12 '25 14:09

user1733849


2 Answers

My Scenario:- I'm using Visual Studio 2022 community edition. I was trying to publish the website to the 'Azure App Service' but it was throwing 'connected to the remote computer but could not authorize the remote server returned an error 401 unauthorized' error. I realized that it was due to the publish profile and when i went to the azure portal i saw that 'Download publish profile' was disabled.

Fix:- Below are the steps that solved the issue for me.

  • Select Azure Web app which you have created.
  • Under settings --> Configuration --> "General settings" -->turned off "Basic Auth Publishing Credentials" --> Save
  • Navigate back to "Overview" --> Restart webapp.
  • Navigate back to settings--> Configuration-->"General Settings" -->turned on "Basic Auth Publishing Credentials". --> Save
  • Finally, I restarted the web app and "Download publish profile" appeared for me
  • Once it was enabled in the azure portal, when i published website by clicking 'Publish' button, I was also able to successfully publish my web app from Visual Studio.

Somehow there might be a glitch when new webapp is created.

enter image description here

like image 80
Krishna Avatar answered Sep 14 '25 09:09

Krishna


If anyone is looking for a February 2024 version of the solution to this nonsense, it might have updated as recently they did some changes around kudu deployment.

  • Select Azure Web app which you have created.
  • Under settings | Configuration | "General settings", Ensure that both SCM Basic Auth Publishing and FTP Basic Auth Publishing are "ON". --> Save
  • Navigate back to "Overview" --> STOP web app.
  • (Publishing Profile should be come available now)
  • Restart your application
like image 34
Paul Devenney Avatar answered Sep 14 '25 10:09

Paul Devenney