You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/azure/how-to-sign-in-with-azure-subscription.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@ description: Sign in to Visual Studio for Windows with an Azure subscription and
4
4
author: ghogen
5
5
ms.subservice: azure-development
6
6
ms.author: ghogen
7
+
ms.date: 06/12/2024
7
8
ms.topic: how-to
8
-
ms.date: 10/19/2021
9
9
---
10
10
11
11
# Sign in with an Azure subscription
12
12
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:
14
14
15
15

16
16
@@ -20,5 +20,25 @@ If you have a Visual Studio subscription, you already have an Azure subscription
20
20
21
21
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.
22
22
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
+
23
25
> [!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
+

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)
0 commit comments