Skip to content

Commit 8804289

Browse files
Merge pull request #8495 from MicrosoftDocs/main
Auto Publish – main to live - 2026-02-06 00:00 UTC
2 parents 6512df6 + a44ed70 commit 8804289

4 files changed

Lines changed: 66 additions & 39 deletions

File tree

articles/go/sdk/authentication/local-development-dev-accounts.md

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -43,51 +43,15 @@ Next, sign in to Azure by using one of several developer tools that you can use
4343

4444
### [Azure CLI](#tab/sign-in-azure-cli)
4545

46-
Developers can use [Azure CLI](/cli/azure/what-is-azure-cli) to authenticate. Apps that use [DefaultAzureCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#DefaultAzureCredential) or [AzureCLICredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#AzureCLICredential) can then use this account to authenticate app requests.
47-
48-
To authenticate with the Azure CLI, run the `az login` command. On a system with a default web browser, the Azure CLI launches the browser to authenticate the user.
49-
50-
```azurecli
51-
az login
52-
```
53-
54-
For systems without a default web browser, the `az login` command uses the device code authentication flow. You can also force the Azure CLI to use the device code flow rather than launching a browser by specifying the `--use-device-code` argument.
55-
56-
```azurecli
57-
az login --use-device-code
58-
```
46+
[!INCLUDE [sign-in-azure-cli](../../../includes/authentication/sign-in-azure-cli.md)]
5947

6048
### [Azure Developer CLI](#tab/sign-in-azure-developer-cli)
6149

62-
Developers can use [Azure Developer CLI](/azure/developer/azure-developer-cli/overview) to authenticate. Apps that use [DefaultAzureCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#DefaultAzureCredential) or [AzureDeveloperCLICredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#AzureDeveloperCLICredential) can then use this account to authenticate app requests.
63-
64-
To authenticate with the Azure Developer CLI, run the `azd auth login` command. On a system with a default web browser, the Azure Developer CLI launches the browser to authenticate the user.
65-
66-
```azdeveloper
67-
azd auth login
68-
```
69-
70-
For systems without a default web browser, the `azd auth login --use-device-code` command uses the device code authentication flow. You can also force the Azure Developer CLI to use the device code flow rather than launching a browser by specifying the `--use-device-code` argument.
71-
72-
```azdeveloper
73-
azd auth login --use-device-code
74-
```
50+
[!INCLUDE [sign-in-azure-developer-cli](../../../includes/authentication/sign-in-azure-developer-cli.md)]
7551

7652
### [Azure PowerShell](#tab/sign-in-azure-powershell)
7753

78-
Developers can use [Azure PowerShell](/powershell/azure/what-is-azure-powershell) to authenticate. Apps that use [DefaultAzureCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#DefaultAzureCredential) or [AzurePowerShellCredential](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#AzurePowerShellCredential) can use this account to authenticate app requests.
79-
80-
To authenticate with Azure PowerShell, run the command `Connect-AzAccount`. On a system with a default web browser and version 5.0.0 or later of Azure PowerShell, the command launches the browser to authenticate the user.
81-
82-
```azurepowershell
83-
Connect-AzAccount
84-
```
85-
86-
For systems without a default web browser, the `Connect-AzAccount` command uses the device code authentication flow. You can also force Azure PowerShell to use the device code flow rather than launching a browser by specifying the `UseDeviceAuthentication` argument.
87-
88-
```azurepowershell
89-
Connect-AzAccount -UseDeviceAuthentication
90-
```
54+
[!INCLUDE [sign-in-azure-powershell](../../../includes/authentication/sign-in-azure-powershell.md)]
9155

9256
---
9357

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
author: PatAltimore
3+
ms.service: azure
4+
ms.topic: include
5+
ms.date: 02/05/2026
6+
ms.author: patricka
7+
---
8+
9+
Developers can use [Azure CLI](/cli/azure/what-is-azure-cli) to authenticate. Apps that use `DefaultAzureCredential` or `AzureCLICredential` can then use this account to authenticate app requests.
10+
11+
To authenticate with the Azure CLI, run the `az login` command. On a system with a default web browser, the Azure CLI launches the browser to authenticate the user.
12+
13+
```azurecli
14+
az login
15+
```
16+
17+
For systems without a default web browser, the `az login` command uses the device code authentication flow. You can also force the Azure CLI to use the device code flow rather than launching a browser by specifying the `--use-device-code` argument.
18+
19+
```azurecli
20+
az login --use-device-code
21+
```
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
author: brendm
3+
ms.service: azure
4+
ms.topic: include
5+
ms.date: 02/05/2026
6+
ms.author: bmitchell287
7+
---
8+
9+
Developers can use [Azure Developer CLI](/azure/developer/azure-developer-cli/overview) to authenticate to Microsoft Entra ID. Apps using `DefaultAzureCredential` or `AzureDeveloperCliCredential` can then use this account to authenticate app requests when running locally.
10+
11+
To authenticate with the Azure Developer CLI, run the `azd auth login` command. On a system with a default web browser, the Azure Developer CLI launches the browser to authenticate the user.
12+
13+
```azdeveloper
14+
azd auth login
15+
```
16+
17+
For systems without a default web browser, the `azd auth login --use-device-code` uses the device code authentication flow. The user can also force the Azure Developer CLI to use the device code flow rather than launching a browser by specifying the `--use-device-code` argument.
18+
19+
```azdeveloper
20+
azd auth login --use-device-code
21+
```
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
author: brendm
3+
ms.service: azure
4+
ms.topic: include
5+
ms.date: 02/05/2026
6+
ms.author: bmitchell287
7+
---
8+
9+
Developers can use [Azure PowerShell](/powershell/azure/what-is-azure-powershell) to authenticate to Microsoft Entra ID. Apps using `DefaultAzureCredential` or `AzurePowerShellCredential` can then use this account to authenticate app requests when running locally.
10+
11+
To authenticate with Azure PowerShell, run the command `Connect-AzAccount`. On a system with a default web browser and version 5.0.0 or later of Azure PowerShell, it launches the browser to authenticate the user.
12+
13+
```azurepowershell
14+
Connect-AzAccount
15+
```
16+
17+
For systems without a default web browser, the `Connect-AzAccount` command uses the device code authentication flow. The user can also force Azure PowerShell to use the device code flow rather than launching a browser by specifying the `UseDeviceAuthentication` argument.
18+
19+
```azurepowershell
20+
Connect-AzAccount -UseDeviceAuthentication
21+
```

0 commit comments

Comments
 (0)