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
Copy file name to clipboardExpand all lines: articles/aks/includes/azd/azd-login-ts.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,24 @@ ms.topic: include
4
4
ms.date: 02/21/2024
5
5
---
6
6
7
-
### AZD Login on GitHub Codespaces
7
+
### AZD login on GitHub Codespaces
8
8
9
9
> [!IMPORTANT]
10
10
> Certain Azure security policies cause conflicts when used to sign in with `azd auth login`. As a workaround, you can perform a curl request to the localhost url you were redirected to after you logged in.
11
11
12
12
The workaround requires the Azure CLI for authentication. If you don't have it or aren't using GitHub Codespaces, install the [Azure CLI][install-azure-cli].
13
13
14
-
1. Inside a terminal, login with Azure CLI
14
+
1. Inside a terminal, login with Azure CLI.
15
+
15
16
```azurecli-interactive
16
17
az login --scope https://graph.microsoft.com/.default
17
18
```
18
-
1. Copy the "localhost" URL from the failed redirect
19
19
20
-
1. In a new terminal window, type `curl` and paste your url
20
+
1. Copy the "localhost" URL from the failed redirect.
21
+
22
+
1. In a new terminal window, type `curl` and paste your url.
21
23
22
-
1. If it works, code for a webpage saying "You have logged into Microsoft Azure!" appears
24
+
1. If it works, code for a webpage saying "You have logged into Microsoft Azure!" appears.
23
25
24
26
```html
25
27
<!DOCTYPE html>
@@ -59,7 +61,7 @@ The workaround requires the Azure CLI for authentication. If you don't have it o
59
61
60
62
1. Close the new terminal and open the old terminal. A JSON list of your subscriptions should appear.
61
63
62
-
1. Copy and note down the subscription_id you want to use. It will be listed as `id`.
64
+
1. Copy and note down the `id` field of the subscription you want to use.
63
65
64
66
1. Paste it in to the command `az account set -n {sub}`.
0 commit comments