Skip to content

Commit d1a314c

Browse files
authored
Merge pull request #12682 from ghogen/azure-sign-in
Add sign-in details and link
2 parents a210d68 + 4da59ce commit d1a314c

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

docs/azure/how-to-sign-in-with-azure-subscription.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ description: Sign in to Visual Studio for Windows with an Azure subscription and
44
author: ghogen
55
ms.subservice: azure-development
66
ms.author: ghogen
7+
ms.date: 06/12/2024
78
ms.topic: how-to
8-
ms.date: 10/19/2021
99
---
1010

1111
# Sign in with an Azure subscription
1212

13-
If you are not already signed in with an Azure subscription, you might encounter a dialog like the following ones.
13+
If you are not already signed in with an Azure subscription, you might encounter a dialog like these:
1414

1515
![Screenshot showing sign-in for Connected Services.](./media/sign-in-required-connected-services.png)
1616

@@ -20,5 +20,25 @@ If you have a Visual Studio subscription, you already have an Azure subscription
2020

2121
Visual Studio also gives you the opportunity to [create a new, free Azure account](https://signup.azure.com/signup?offer=Azure_MSDN) to try things out with.
2222

23+
Visual Studio allows you to sign in with multiple accounts and it let's you work with Azure resources across multiple Azure subscriptions so no need to sign-out of one in order to sign-in with another!
24+
2325
> [!NOTE]
24-
> Visual Studio allows you to sign in with multiple accounts and it let's you work with Azure resources across multiple Azure subscriptions so no need to sign-out of one in order to sign-in with another!
26+
> For Azure CLI users, be aware that the sign-in from Azure CLI is separate from the sign-in used in Visual Studio, so even if you're signed in to Azure by using `az login` on the same machine where you're running Visual Studio, you still need to provide credentials within Visual Studio.
27+
28+
## To sign in to Azure from a dialog or wizard screen
29+
30+
1. Select the **Sign In** button, and then choose **Add an account**. You should see options such as **Microsoft Work, school, or personal account**. This option means Microsoft Entra ID (Microsoft Account).
31+
32+
![Screenshot of sign-in dropdown.](./media/sign-in-required-microsoft.png)
33+
34+
1. Next, you see a screen listing Microsoft Accounts. Choose the account that has access to the Azure resources you require. Accounts known to Visual Studio are shown, but you can add another if the account you're looking for is not listed.
35+
36+
1. Once you choose an account, you might be asked for credentials and two-factor authentication, depending on the security environment on your computer and your account's security settings.
37+
38+
1. After a successful sign-in, focus returns to the dialog, and you should see your subscription listed in the place where the **Sign In** box was previously.
39+
40+
To avoid having to sign in when you connect to an Azure service or publish to Azure, you can use Visual Studio's account management features to add your Azure subscription to your Visual Studio accounts. In that case, you are automatically signed in whenever you're using Visual Studio. See [Add and switch user accounts to Visual Studio](../ide/signing-in-to-visual-studio.md#add-and-switch-user-accounts-in-visual-studio).
41+
42+
## Related content
43+
44+
- [Sign in to Visual Studio with accounts that require multifactor authentication (MFA)](../ide/work-with-multi-factor-authentication.md)
11.7 KB
Loading
21.3 KB
Loading
16.8 KB
Loading

0 commit comments

Comments
 (0)