Azure Shell Reports Unknown Id Instead of Tenant ID #21755

Open
opened 2026-01-31 07:53:56 +00:00 by claunia · 0 comments
Owner

Originally created by @CheetahChrome on GitHub (May 23, 2024).

Originally assigned to: @PankajBhojwani on GitHub.

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

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

image

Note that I can login in a PowerShell shell using

image

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

Originally created by @CheetahChrome on GitHub (May 23, 2024). Originally assigned to: @PankajBhojwani on GitHub. ### 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)
claunia added the Issue-BugProduct-TerminalArea-AzureShell labels 2026-01-31 07:53:57 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21755