Skip to content

Commit 82f84cc

Browse files
committed
add troubleshooting step
1 parent bad05ba commit 82f84cc

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

troubleshooting.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,20 @@ When the `azd provision` command runs it creates a deployment resource in your s
9797
az deployment sub delete -n <deployment-name>
9898
```
9999
100-
1. You should now be able to run the `azd provision` command and resume your deployment.
100+
1. You should now be able to run the `azd provision` command and resume your deployment.
101+
102+
## ERROR: resolving bicep parameters file: fetching current principal id: getting tenant id for subscription...
103+
This error can happen when you are using an account that has access to multiple subscriptions. The `azd auth` command is not able to retrieve a list of the subscriptions that you can access when that tenant is configured to require a Multi-Factor Auth experience that was not completed.
104+
105+
### Workaround
106+
You should complete the MFA experience for your default tenant, and the tenant that you wish to access by running both authentication commands:
107+
108+
1. Authenticate to your default tenant
109+
```sh
110+
azd auth login --use-device-code
111+
```
112+
113+
1. Authenticate to the tenant that owns the subscription you want to use
114+
```sh
115+
azd auth login --use-device-code --tenant <tenant-id>
116+
```

0 commit comments

Comments
 (0)