Multiple authentication prompts when signing into Visual Studio

Alex C 56 Reputation points
2021-01-13T18:09:52.547+00:00

Our company has software consultants and Managed Services people who are invited into multiple customer DevOps instances. When they log into Visual Studio, they are prompted with multiple authentication prompts (most also use MFA). Some people are active in 10+ different customer DevOps instances and need to log into Visual Studio on different computers. I believe the additional prompts are each coming from every tenant that they're a guest in as VS checks access to each one. It's very time consuming and annoying to have to authenticate so many times. Is there a way to specify before or at login which DevOps instance(s)/Azure AD to authenticate to?

I really wish Microsoft configured things such that we authenticate to our home tenant and then access to all other tenants was validated behind the scenes.

Thanks.

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
971 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Giuseppe Carafa 96 Reputation points
    2022-07-07T11:07:00.547+00:00

    Seriously guys what a pain in the proverbial this is. Every two weeks I get told that my credentials need to be re-entered. I log in and I have to confirm through Microsof Authenticator. It prompts me again and it sends me a text. And it prompts me again and I have to confirm AGAIN through Microsoft Authenticator. This is such an annoyance, sort it the bleep out. PLEASE

    Oh yeah, I'm on the most recent build of Visual Studio 2022

    There's no excuse for this nonsense.

    1 person found this answer helpful.
    0 comments No comments

  2. Anna Xiu-MSFT 26,146 Reputation points Microsoft Vendor
    2021-01-14T03:09:16.01+00:00

    Hi @Alex C ,

    Which version of Visual Studio are you using?
    If you are using VS2019, I suggest you update it to the latest version and check if the situation disappears.

    Meanwhile, in order to reduce the reauthentication, you can try to enable “System web browser” under Tools > Options > Environment > Accounts > Add and reauthenticate accounts using: dropdown. Then, sign in your accounts again.
    For more details, please view the document:
    How to use Visual Studio with accounts that require multi-factor authentication

    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.

  3. Alex C 56 Reputation points
    2021-01-14T06:31:06.48+00:00

    I'll ask our employees to try this. Given the environment setup, they don't always have access to update the version. I'll report back once I have more information.


  4. Roger Schmidt 16 Reputation points
    2022-02-17T17:55:23.96+00:00

    The problem is that VS 2017 asks to authenticate for all tenants, to which I am registered as guest, independent from any other conditions (DevOps etc.). This is really annoying, especially because in some cases I don't even know to which tenant I am asked to authenticate - if no corporate logo has been configured for Microsoft 365 logon. And it just doesn't make sense to authenticate for all - I know, logon prompts can be clicked away, but still. I guess the developers of VS don't have guest accounts in other tenants, and/or they don't work with VS as IDE for their daily work, otherwise they would implement a better solution very soon...

    0 comments No comments