Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article, you learn how to access multiple user accounts in Visual Studio. After you sign in to Visual Studio with a Microsoft or an organizational account, you can see the resources accessible from your accounts in places such as the Add Connected Service dialog, Server Explorer, and Team Explorer.
Azure, Application Insights, Azure DevOps, and Microsoft 365 services all support the streamlined sign-in experience.
Access your Azure account via Add Connected Service dialog
Open an existing project, or create a new project.
Choose the project node in Solution Explorer, and then right-click and select Add > Connected Service.
The Connected Services window appears and shows you the list of services in the Azure account associated with your Visual Studio personalization account. You don't have to sign in separately to Azure. However, you do need to sign in to the other accounts the first time you attempt to access their resources from a different machine.
Access Microsoft Entra ID in a Web project
Microsoft Entra ID enables support for end-user single sign-in in ASP.NET MVC web apps or AD authentication in web API services. Domain authentication is different from individual user account authentication. Users that have access to your Active Directory domain can use their existing Microsoft Entra accounts to connect to your web applications. Microsoft 365 apps can also use domain authentication.
To see this scenario in action:
- Create a new ASP.NET Core Web App project.
- On the Additional information page, choose .NET 8.0 from the Target Framework drop-down.
- Choose an authentication type from the Authentication Type drop-down.
Identity: Proxy support for Microsoft Entra backed accounts
Visual Studio can now detect when users are behind a proxy and proactively prompt for proxy credentials when adding Microsoft accounts (MSA) or work or school accounts (WSA) to Visual Studio.
Proxy credentials are stored in the Windows Credential Manager and are used as needed to complete identity related operations.
Note
If the proxy server starts or changes after opening Visual Studio, the Account Settings dialog will show a warning, but you'll need to restart Visual Studio to get the proxy credentials prompt.