skip to Main Content

I’ve published my ASP.NET MVC web site to Azure App Service countless times. Today, though, when I tried to do so, I got a publish error. Thinking it might be related to a recent password change, I signed out of my Microsoft account and deleted my old publishing profile so I could start fresh.

However, now, when I use the Publish wizard to set up a new publish profile, it won’t even show me my Azure resources. Here’s what I’m doing:

  1. Sign out of Microsoft account in Visual Studio.
  2. Right-click web project > Publish...
  3. Click Add a publish profile
  4. Select Azure as the target
  5. Select Azure App Service (Windows) as the specific target
  6. The wizard asks me to sign in.
  7. Sign in.
  8. When the sign-in window goes away, the Publish window momentarily shows the UI for picking the target Azure App Service, but then it immediately switches back to the screen telling me to sign in.

Here are some images:

Prior to signing in…

Prior to signing in

For just a few moments after signing in…

For just a few moment after signing in

Immediately afterward…

Afterward

No matter what I do, I can’t see my Azure resources. Is anyone else hitting this? Do I need to delete a folder somewhere to clear out some cruft? Thanks in advance?

2

Answers


  1. This type of issue occurs when there are any pending updates for the Visual Studio.

    Check for the update, update / use any latest version of Visual Studio.

    • Install the latest Visual Studio version by selecting Azure development.

    enter image description here

    • Check whether the Azure Subscription is in Active state by login in Azure Portal.

    • In Visual Studio => Tools => Options => Azure Service Authentication => Account Selection, select the Azure account.

    enter image description here

    • In VS,File => Account Settings, check the Account options.

    enter image description here

    • Here Iam using VS 2022 17.5.0 version.
    • Now, try to publish he Application, select Azure App Service=> click on Create new or Create a new Instance.

    enter image description here

    Login or Signup to reply.
  2. Just for reference I was having the exact same issue as above but it came down to my Azure Access Priveledges having being changed. Once the correct priveledges were restord to my Azure AD profile the visual studio plugin started to work again

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search