add Azure Tenant ID for Cloud Shell #11481

Open
opened 2026-01-31 02:48:52 +00:00 by claunia · 0 comments
Owner

Originally created by @chlsmith on GitHub (Nov 18, 2020).

In my org, we cannot log into Azure without specifying the tenant id. I don't know how that is being done or why it's the case, but even for Powershell, I have to pass the tenant ID for "connect-azaccount" for it to work.

I get this error when opening the Cloud Shell in Terminal (and the same when I try to use powershell without the tenant):

AADSTS500021: Access to 'Microsoft Services' tenant is denied.
Trace ID: 7856d209-60c6-484b-bb16-4cca8f436f00
Correlation ID: 0175f86a-10f3-4983-826c-dd0d42c9efd5
Timestamp: 2020-11-18 16:51:42Z
[process exited with code 1]

Is there some way in the config file that I can set the tenant that I want to connect to? I see info that you can usually pick your tenant after signing in, and then storing it somehow. I just don't know how that gets stored or if I can maybe bypass that method and just create the connection files myself?

Originally created by @chlsmith on GitHub (Nov 18, 2020). In my org, we cannot log into Azure without specifying the tenant id. I don't know how that is being done or why it's the case, but even for Powershell, I have to pass the tenant ID for "connect-azaccount" for it to work. I get this error when opening the Cloud Shell in Terminal (and the same when I try to use powershell without the tenant): AADSTS500021: Access to 'Microsoft Services' tenant is denied. Trace ID: 7856d209-60c6-484b-bb16-4cca8f436f00 Correlation ID: 0175f86a-10f3-4983-826c-dd0d42c9efd5 Timestamp: 2020-11-18 16:51:42Z [process exited with code 1] Is there some way in the config file that I can set the tenant that I want to connect to? I see info that you can usually pick your tenant after signing in, and then storing it somehow. I just don't know how that gets stored or if I can maybe bypass that method and just create the connection files myself?
claunia added the Issue-BugResolution-DuplicateProduct-TerminalArea-AzureShell labels 2026-01-31 02:48:52 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11481