Feature Request: Specific Azure Tenant per Cloud Shell profile #8303

Open
opened 2026-01-31 01:26:04 +00:00 by claunia · 0 comments
Owner

Originally created by @yaakov-h on GitHub (May 20, 2020).

I belong to multiple Azure tenancies / Azure ADs, and when I open a Cloud Shell profile it asks every time which one I want to log in to, like so:

Tenant 0: First Tenant (tenant1.com.au)
Tenant 1: Second Tenant (tenant2.com.au)
Please enter the desired tenant number.
Enter n to login with a new account
Enter r to remove the above saved connection settings.
>

I think it would be great if I could specify the tenant in the profile (as defined in settings.json) so that I can open a Cloud Shell directly using wt or the new-tab UI and have it connect automatically to the Azure tenant that I want.

I would expect to be able to do something like this to skip the tenancy selection dialog:

{
    "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
    "hidden": false,
    "name": "Azure Cloud Shell (Tenant1)",
    "source": "Windows.Terminal.Azure",
    "tenant": "{my-first-azure-ad-tenant-guid-here}"
},
{
    "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
    "hidden": false,
    "name": "Azure Cloud Shell (Tenant2)",
    "source": "Windows.Terminal.Azure",
    "tenant": "{my-second-azure-ad-tenant-guid-here}"
}

(probably with different profile GUIDs though, I guess)

Originally created by @yaakov-h on GitHub (May 20, 2020). I belong to multiple Azure tenancies / Azure ADs, and when I open a Cloud Shell profile it asks every time which one I want to log in to, like so: > Tenant 0: First Tenant (tenant1.com.au) Tenant 1: Second Tenant (tenant2.com.au) Please enter the desired tenant number. Enter n to login with a new account Enter r to remove the above saved connection settings. \> I think it would be great if I could specify the tenant in the profile (as defined in settings.json) so that I can open a Cloud Shell directly using `wt` or the new-tab UI and have it connect automatically to the Azure tenant that I want. I would expect to be able to do something like this to skip the tenancy selection dialog: ``` { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "name": "Azure Cloud Shell (Tenant1)", "source": "Windows.Terminal.Azure", "tenant": "{my-first-azure-ad-tenant-guid-here}" }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "name": "Azure Cloud Shell (Tenant2)", "source": "Windows.Terminal.Azure", "tenant": "{my-second-azure-ad-tenant-guid-here}" } ``` (probably with different profile GUIDs though, I guess)
claunia added the Issue-TaskResolution-DuplicateProduct-TerminalArea-AzureShell labels 2026-01-31 01:26:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8303