Visual Studio - Publish Web App to Azure "Reenter your credentials" does not work

Viewed 3636

I can't publish an asp.net app to Azure Web App in Visual Studio 2015. It asks me to reenter my credentials, which I do, and then get the same "renter your credentials" screen.

I have two Azure accounts, one is my synced Azure AD identity (account@company.com), and the other as a cloud-only identity (account@company.onmicrosoft.com). When trying to log in with either of these accounts, Visual Studio still says "Reenter your credentials" and does not show any subscriptions or resource groups.

Looking at a Fiddler, I can see Azure return a list of all of my subscriptions, yet Visual Studio does not populate and thinks my credentials are invalid (Fiddler screenshot below)

Issue Picture

enter image description here

5 Answers

I had the same problem

In the Acount settings of your visual studio top right.. Delete all acounts an then sign in with the proper azure account.

Then when you go to publish you can add the account

Go to Options > Accounts,

On the "Add and reauthenticate accounts using:" field select Device code .

Login in the browser with the provided code and then you are able to publish without re-entering credentials.

I had this issue with visual studio 2019, my Microsoft account was linked with my gitHub account. I unlinked my github account by logging into my windows account going into security and unlinking the account

Same issue here with VS 2019 and 2022 (preview), but the account settings in Visual Studio only showed my 'Home Organization'. Deleting and re-adding didn't help.

Finally, I fixed it by removing an external organization that I was a member of from my account.

Go to https://myaccount.microsoft.com and login. On the left panel, select Organizations and delete all, except your Home Organization.

Of course, if you actually need the external organization(s), this isn't going to help you.

Related