azure-devopsvisual-studio-2019team-explorer

Visual Studio 2019/Team Explorer: How can I dismiss a connection to Azure DevOps?


Just for testing purposes I connected to Azure DevOps.

Now I want to revert to the situation I was before I connected to Azure DevOps. But I don't seem to be able to do that. Whenever I launch Visual Studio and open Team Explorer, it wants to authenticate me against Azure DevOps:

Can't remove Azure connection

How can I fully dismiss a connection to Azure DevOps without being forced to reset my Visual Studio profile or re-install Visual Studio 2019?



EDIT

I don't see an Azure DevOps connection listed in the Connect page. And I don't have a Team menu item in the menu bar:

Team Explorer 2



UPDATE

The Windows credential about the Azure devops.

Actually, I don't have any corresponding entry in the Windows Credential Manager listed:

No credentials


This may be due to the fact that I didn't connect a workspace file path to a DevOps project collection. (I pressed Cancel when I was asked to link $ to a local path.)

Yesterday, I was quite desperate. Fortunately I didn't delete the %LOCALAPPDATA%\.IdentityService folder but just renamed it.

I had deleted the %LOCALAPPDATA%\Microsoft\Team Foundation\8.0\Cache folder, though.

After I renamed the %LOCALAPPDATA%\.IdentityService back to its original location (beforehand deleting what has newly been created in that folder), I could restart Visual Studio 2019 normally again.

And here's the new situation: Now everything works as you originally suggested in your first reply. Now I can randomly create and dismiss connections to the AzureDev server. I now even have a Team menu item.

Apparently, over time, Visual Studio 2019 must have stored information in %LOCALAPPDATA%\Microsoft\Team Foundation\8.0\Cache that must have caused it to malfunction. After deleting that cache now, everything works as expected.


Solution

  • Visual Studio 2019/Team Explorer: How can I dismiss a connection to Azure DevOps?

    I could reproduce your situation on my side.

    If I go to Team in the menu and select 'Disconnect from Server', then I was allowed to delete the connection:

    enter image description here

    After removing all repos connections.

    Then, I restart the Visual Studio. However, I encountered the same issue as you, and Visual Studio is still authenticates me against Azure DevOps:

    enter image description here

    To resolve this issue, I tried the following septs to solve this issue, please check if it helps you:

    Now, reopen our Visual Studio with option Continue without code rather than the recent project from Azure devops:

    enter image description here

    Update:

    Which Credential Manager are you referring to? Git? Windows? Would you please elaborate?

    enter image description here

    The Windows credential about the Azure devops.