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: README.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,13 @@ This repository contains a collection of patterns and best practices for buildin
20
20
Before deploying, you must be authenticated to Azure and have the appropriate subscription selected. Run the following command to authenticate:
21
21
22
22
```shell
23
-
az login --scope https://graph.microsoft.com//.default
23
+
az login
24
+
```
25
+
26
+
If you have multiple tenants, you can use the following command to log into the tenant:
27
+
28
+
```shell
29
+
az login --tenant <tenant-id>
24
30
```
25
31
26
32
Set the subscription to the one you want to use (you can use [az account list](https://learn.microsoft.com/en-us/cli/azure/account?view=azure-cli-latest#az-account-list) to list available subscriptions):
@@ -39,6 +45,12 @@ Use the next command to login with the Azure Dev CLI (AZD) tool:
39
45
azd auth login
40
46
```
41
47
48
+
If you have multiple tenants, you can use the following command to log into the tenant:
49
+
50
+
```pwsh
51
+
azd auth login --tenant-id <tenant-id>
52
+
```
53
+
42
54
## Create a new environment
43
55
44
56
Next we provide the AZD tool with variables that it uses to create the deployment. The first thing we initialize is the AZD environment with a name.
0 commit comments