microsoft / microsoft/terminal

Azure Shell Reports Unknown Id Instead of Tenant ID

Open
#17,311 0 comments 0 reactions 1 assignee Claimed by @PankajBhojwani View on GitHub
Area-AzureShell Issue-Bug Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version

1.20.11271.0

### Windows build number

10.0.22621.0

### Other Software

_No response_

### Steps to reproduce

1. Open `Azure Cloud Shell` in Terminal
2. Follow steps for reported authentication.
3. Select one of the provided tenants
4. Inspect the error message and note that the id reported is not tenant id of the tenants listed.

### Expected Behavior

I expect that the error message should report the *actual* tenant id of the target tenant being logged into. Or that the id being reported, if different from any in the list, tells a user **what the origination or name** of that id is being reported along with the id. This unknown Id, Account(?) is unclear.

### Actual Behavior

I run the Azure Cloud Shell (1) and follow the authentication steps outside the shell (2). Once the outside steps are successfully completed, I am presented with the tenants I want to log into for that session (3). Upon picking a tenant, I am presented with an MFA error and an `Id` for reference. The `Id` given is not either of the tenant ids I am attempting to log into. What is this `Id`?

See the reported Id staring with `797...`.

![image](https://github.com/microsoft/terminal/assets/1110966/eaae4a04-74e8-4fec-8bc2-e7e56fe9f91b)

Here are the actual tenant ids and none of them are in the `797...` realm.

![image](https://github.com/microsoft/terminal/assets/1110966/c8101e61-1e11-4c4d-b68d-6c99fe6d5352)

Note that I can login in a PowerShell shell using

![image](https://github.com/microsoft/terminal/assets/1110966/203d90eb-4956-4958-b180-6f795cbd2357)

Note the actual failure is also an issue and appears to have been reported

[Azure Cloud Shell Fails to connect when you have multiple tenants and 1 of them requires MFA · Issue #12458 · microsoft/terminal · GitHub](https://github.com/microsoft/terminal/issues/12458)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.