Visual studio Cloud explorer can't sign in to Azure with MFA

AN 1 Reputation point
2021-06-17T06:26:36.973+00:00

Hi

I'm signed in in Visual studio and can connect to our TFS.

But when I open Cloud explorer I'll get prompted to reenter my credentials.
We are using MFA and when I get to that stage in the sign in process I'll never get e notification to the Auth App in my phone. I've tried to search for login attempts from the app but doesn't find any. When I try to use the code generated in the Auth app it says that it is the wrong code.

I've tried to set my mfa to login using sms-code instead or application code but when trying to sign in from VS I'll only get prompted to sign in using the app. Even after I removed Auth app as an alternativ for mfa.

When signing in to Sharepoint for example using the web, all of the above behave as expected and I can sign in.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,031 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 28,576 Reputation points Microsoft Vendor
    2021-06-17T09:37:30.33+00:00

    Hi @AN ,

    Welcome to Microsoft Q&A!

    Which version of Visual Studio are you using?

    You could have a try with the following workarounds:

    1. Update your Visual Studio to the latest version.
    2. Click on the Account settings in the upper-right and try to re-enter your credentials.
    3. In Cloud Explorer, click on Manage Accounts and remove all accounts, then, relaunch your VS and re-enter your credentials.
    4. Enable “System web browser” under Tools > Options > Environment > Accounts > Add and reauthenticate accounts using: dropdown.

    If it still persists, please share us some screenshots of the error messages in order for us to investigate it further.

    Sincerely,
    Anna

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.