Azure Publish Profile Download is disabled
Asked Answered
F

5

17

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

Feathering answered 25/1, 2017 at 10:41 Comment(2)
Is it visible in classic portal?Vinia
Oink!? Yes it is, and I could download it. I could even import it into VS. Crazy Thank you for this suggestion. Pity that it's not working on the new portal. I was able to do it a while ago. Must have done something to make it angry. :-)Feathering
P
38

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

Pickled answered 14/1 at 1:56 Comment(6)
I was initially skeptical about this solution. but I gave it a shot anyway. To my surprise, it actually did the trick. I don't know how or why, but it works.Parthia
This method is effective; I encountered the same issue, and employing this trick proved to be beneficial.Portfire
Just worked for me as well.Policyholder
Strange that the correct answer to this is showing 7 years later. I had answered this in another forum but forgot how to fix it again ;( and this answer just helped me. Thanks!Apatite
Wow.... 6 years and still this bug exists! Solution worked, thanksColeorhiza
Interesting that so many people are running into this issue recently as evidenced by the dates of the comments and replies. I too ran into this issue upon creating a new App Service. Our Azure DevOps pipelines were failing to deploy to the App Service with a 401 UNAUTHORIZED error. After performing the above steps. everything now works. New bug in Azure?Sagittarius
H
19

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
Honeyhoneybee answered 19/2 at 15:37 Comment(3)
Yep, just done that and worked for meKiblah
Thanks! It worked. Were these defaulted to enabled before? This must be the Azure random change of the month.Contemplate
I believe the SCM Basic Auth is relatively new and related to the move to Kudu deployment. I'm basing this assumption on some patch notes I saw for the azure cli around deployment.Honeyhoneybee
C
1

For some unknown reason, in first attempt it's not working for me. But when I tried to do on/off 3-4 times and did restart, then I could download the publish profile.

Counter answered 17/1 at 7:39 Comment(0)
P
-1

Looks like it is available on the dashboard of the new portal. You need to hover over your function app tile and go into the menu as seen in the photo.

Publish Profile on dashboard tile

Pleiad answered 13/6, 2017 at 15:37 Comment(0)
N
-1

ISSUES: I have created one Azure web app service with a deployed code option. The web app was created successfully and is running fine.

  1. When you tried to Download the publish profile. You get the following error. Basic authentication is disabled. enter image description here

  2. Create one web application project in Visual Studio 2019 and test it locally. It worked fine. However, when I tried to publish this web application code from VS-2019, got the below error. Web deployment task failed. (Connected to the remote computer ("asiley-webtest.scm.azurewebsites.net") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.)Make sure the site name, user name, and password are correct. If the issue is not resolved, please contact your local or server administrator.Error details:Connected to the remote computer ("asiley-webtest.scm.azurewebsites.net") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.The remote server returned an error: (401) Unauthorized. enter image description here

RESOLUTION: One of the reason of this problem is Basic Auth Publishing setting. If it is disable then you get such issue. Please follow the steps to enable Basic Auth Publish Setting.

  1. Login portal go to the App Service and select Created Web App service
  2. In Settings section select the Configuration
  3. In the right panned check the ON option of a. SCM Basic Auth Publishi b. FTP Basic Auth Publishin
  4. Save and restart the web app application.
Noenoel answered 3/7 at 8:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.