Skip to content

Commit e475446

Browse files
committed
move vs code tab
1 parent 12d7c44 commit e475446

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

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

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,29 @@ Next, sign-in to Azure using one of several developer tools that can be used to
4343

4444
[!INCLUDE [auth-visual-studio](../includes/auth-visual-studio.md)]
4545

46+
### [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+
4669
### [Azure CLI](#tab/sign-in-azure-cli)
4770
4871
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
91114
Connect-AzAccount -UseDeviceAuthentication
92115
```
93116

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:
110-
111-
```dotnetcli
112-
dotnet add package Azure.Identity.Broker
113-
```
114-
115-
---
116-
117117
[!INCLUDE [Implement DefaultAzureCredential](<../includes/implement-defaultazurecredential.md>)]

0 commit comments

Comments
 (0)