Skip to content

Commit 9e6b36b

Browse files
committed
add vs code flow
1 parent c6e8daf commit 9e6b36b

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,21 @@ For systems without a default web browser, the `Connect-AzAccount` command uses
9191
Connect-AzAccount -UseDeviceAuthentication
9292
```
9393

94+
### [Visual Studio Code](#tab/sign-in-visual-studio-code)
95+
96+
Developers using Visual Studio Code can authenticate using their developer account directly through the code editor. Apps using <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. Install the [Azure Resources](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureresourcegroups) Visual Studio Code extension, which lets you to view and manage Azure resources directly from Visual Studio Code. This extension 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. From the Command Palette in Visual Studio Code, 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 and `Cmd+Shift+P` on MacOS.
108+
94109
---
95110

96111
[!INCLUDE [Implement DefaultAzureCredential](<../includes/implement-defaultazurecredential.md>)]
14.7 KB
Loading
12.8 KB
Loading

0 commit comments

Comments
 (0)