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
### [Visual Studio Code](#tab/sign-in-visual-studio-code)
47
+
48
+
Developers using Visual Studio Code can authenticate with their developer account directly through the editor. Apps that use <xref:Azure.Identity.DefaultAzureCredential> or <xref:Azure.Identity.VisualStudioCodeCredential> can discover and use this account to authenticate app requests when running locally.
49
+
50
+
1. In Visual Studio Code, go to the **Extensions** panel and install the [Azure Resources](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureresourcegroups) extension. This extension lets you view and manage Azure resources directly from Visual Studio Code. It also uses the built-in Visual Studio Code Microsoft authentication provider to authenticate with Azure.
51
+
52
+
:::image type="content" source="../media/azure-resources-extension.png" alt-text="Screenshot showing the Azure Resources extension.":::
53
+
54
+
1. Open the Command Palette in Visual Studio Code, then search for and select **Azure: Sign in**.
55
+
56
+
:::image type="content" source="../media/visual-studio-code-sign-in.png" alt-text="Screenshot showing how to sign in to Azure in Visual Studio Code.":::
57
+
58
+
> [!TIP]
59
+
> Open the Command Palette using `Ctrl+Shift+P` on Windows/Linux or `Cmd+Shift+P` on macOS.
60
+
61
+
1. Add the [Azure.Identity.Broker](https://www.nuget.org/packages/Azure.Identity.Broker) NuGet package to your app:
62
+
63
+
```dotnetcli
64
+
dotnet add package Azure.Identity.Broker
65
+
```
66
+
67
+
---
68
+
46
69
### [Azure CLI](#tab/sign-in-azure-cli)
47
70
48
71
Developers coding outside of an IDE can also use the [Azure CLI](/cli/azure/what-is-azure-cli) to authenticate. Apps using `DefaultAzureCredential` or <xref:Azure.Identity.AzureCliCredential> can then use this account to authenticate app requests when running locally.
@@ -91,27 +114,4 @@ For systems without a default web browser, the `Connect-AzAccount` command uses
91
114
Connect-AzAccount -UseDeviceAuthentication
92
115
```
93
116
94
-
### [Visual Studio Code](#tab/sign-in-visual-studio-code)
95
-
96
-
Developers using Visual Studio Code can authenticate with their developer account directly through the editor. Apps that use <xref:Azure.Identity.DefaultAzureCredential> or <xref:Azure.Identity.VisualStudioCodeCredential> can discover and use this account to authenticate app requests when running locally.
97
-
98
-
1. In Visual Studio Code, go to the **Extensions** panel and install the [Azure Resources](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureresourcegroups) extension. This extension lets you view and manage Azure resources directly from Visual Studio Code. It also uses the built-in Visual Studio Code Microsoft authentication provider to authenticate with Azure.
99
-
100
-
:::image type="content" source="../media/azure-resources-extension.png" alt-text="Screenshot showing the Azure Resources extension.":::
101
-
102
-
1. Open the Command Palette in Visual Studio Code, then search for and select **Azure: Sign in**.
103
-
104
-
:::image type="content" source="../media/visual-studio-code-sign-in.png" alt-text="Screenshot showing how to sign in to Azure in Visual Studio Code.":::
105
-
106
-
> [!TIP]
107
-
> Open the Command Palette using `Ctrl+Shift+P` on Windows/Linux or `Cmd+Shift+P` on macOS.
108
-
109
-
1. Add the [Azure.Identity.Broker](https://www.nuget.org/packages/Azure.Identity.Broker) NuGet package to your app:
0 commit comments