Skip to content

Commit f00abed

Browse files
auth visual studio (#45423)
* auth visual studio --------- Co-authored-by: Scott Addie <[email protected]>
1 parent c1bdb77 commit f00abed

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

docs/azure/configure-visual-studio.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Configure Visual Studio for Azure Development with .NET
33
description: This article helps you configure Visual Studio for Azure development including getting the right workloads installed and connecting Visual Studio to your Azure account.
44
ms.topic: conceptual
55
ms.custom: devx-track-dotnet, engagement-fy23
6-
ms.date: 8/15/2024
6+
ms.date: 3/19/2025
77
author: alexwolfmsft
88
ms.author: alexwolf
99
---
@@ -27,11 +27,7 @@ Open Visual Studio Installer and validate that the workloads **Azure development
2727

2828
## Authenticate Visual Studio with Azure
2929

30-
When you debug apps through Visual Studio, Visual Studio can use your Azure account to authenticate and access Azure Resources. This account is also used when you publish apps directly from Visual Studio to Azure.
31-
32-
To authenticate your Azure account from Visual Studio, select the **Tools** > **Options** menu to launch the **Options** dialog. Navigate to the **Azure Service Authentication** options and sign in using your Azure account.
33-
34-
![Screenshot of the Visual Studio Options Dialog showing the Azure Login](./media/visual-studio-azure-login-dialog.png)
30+
[!INCLUDE [auth-visual-studio](sdk/includes/auth-visual-studio.md)]
3531

3632
## Next steps
3733

Binary file not shown.

docs/azure/sdk/authentication/local-development-dev-accounts.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,7 @@ Next, sign-in to Azure using one of several developer tools that can be used to
3838

3939
### [Visual Studio](#tab/sign-in-visual-studio)
4040

41-
Developers using Visual Studio 2017 or later can authenticate using their developer account through the IDE. Apps using `DefaultAzureCredential` or <xref:Azure.Identity.VisualStudioCredential> can discover and use this account to authenticate app requests when running locally.
42-
43-
1. Inside Visual Studio, navigate to **Tools** > **Options** to open the options dialog.
44-
1. In the **Search Options** box at the top, type *Azure* to filter the available options.
45-
1. Under **Azure Service Authentication**, choose **Account Selection**.
46-
1. Select the drop-down menu under **Choose an account** and choose to add a Microsoft Account.
47-
1. In the window that opens, enter the credentials for your desired Azure account, and then confirm your inputs.
48-
49-
:::image type="content" source="../media/visual-studio-sign-in.png" alt-text="A screenshot showing how to sign-in to Azure using Visual Studio.":::
50-
51-
1. Select **OK** to close the options dialog.
41+
[!INCLUDE [auth-visual-studio](../includes/auth-visual-studio.md)]
5242

5343
### [Azure CLI](#tab/sign-in-azure-cli)
5444

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
ms.topic: include
3+
ms.date: 03/19/2025
4+
---
5+
6+
Developers using Visual Studio 2017 or later can authenticate using their developer account through the IDE. Apps using <xref:Azure.Identity.DefaultAzureCredential> or <xref:Azure.Identity.VisualStudioCredential> can discover and use this account to authenticate app requests when running locally. This account is also used when you publish apps directly from Visual Studio to Azure.
7+
8+
> [!IMPORTANT]
9+
> You'll need to [install the **Azure development** workload](/dotnet/azure/configure-visual-studio#install-azure-workloads) to enable Visual Studio tooling for Azure authentication, development, and deployment.
10+
11+
1. Inside Visual Studio, navigate to **Tools** > **Options** to open the options dialog.
12+
1. In the **Search Options** box at the top, type *Azure* to filter the available options.
13+
1. Under **Azure Service Authentication**, choose **Account Selection**.
14+
1. Select the drop-down menu under **Choose an account** and choose to add a Microsoft account.
15+
1. In the window that opens, enter the credentials for your desired Azure account, and then confirm your inputs.
16+
17+
:::image type="content" source="../media/visual-studio-sign-in.png" alt-text="A screenshot showing how to sign-in to Azure using Visual Studio.":::
18+
19+
1. Select **OK** to close the options dialog.

0 commit comments

Comments
 (0)