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

Closed
opened 2026-01-31 01:26:07 +00:00 by claunia · 3 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:07 +00:00
Author
Owner

@zadjii-msft commented on GitHub (May 20, 2020):

This sounds like a great idea. I'd think that this is sorta related to #5311, but probably different enough. We should probably get a spec going for outlining some improvements to the ACS connection.

@zadjii-msft commented on GitHub (May 20, 2020): This sounds like a great idea. I'd think that this is sorta related to #5311, but probably different enough. We should probably get a spec going for outlining some improvements to the ACS connection.
Author
Owner

@DHowett commented on GitHub (May 21, 2020):

Thanks for the request! I think this is a /dupe of #5311, though with more information. I'm going to move your comment over there.

@DHowett commented on GitHub (May 21, 2020): Thanks for the request! I think this is a /dupe of #5311, though with more information. I'm going to move your comment over there.
Author
Owner

@ghost commented on GitHub (May 21, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (May 21, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8306