[Azure AD] Execute command on non-default tenant
See original GitHub issueHey
I would like to use the ad commands, but with a different tenant. We have multiple tenants in our subscriptions, but it seems that this command only works with the default tenant. Using PowerShell I can do something like Azure-LoginRmAccount -TenantId
. I tried to do something similar using az login -t
but it failed: No subscriptions found for this account
. When I tried to login without tenant it succeeds. Does this flow supported?
Thanks,
Omer
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Sign in with Azure PowerShell
To sign in interactively, use the Connect-AzAccount cmdlet. ... This cmdlet presents an interactive browser based login prompt by default. Use the ...
Read more >Change Azure directory from command line
To login to a different (non-default) directory, use the --tenant option with the az login command, passing the FQDN for the directory, e.g....
Read more >Nodes — BloodHound 4.2.0 documentation - Read the Docs
Nodes represent principals and other objects in Active Directory. ... Very useful for determining any non-default services that may be running on the ......
Read more >office 365 user attributes
Azure AD Connect sometimes renames attributes when replicating your on-premises AD to Azure AD /Office ... Execute the following command to connect to...
Read more >Azure AD Default Configuration Blunders
We started by creating a test tenant in Azure and populating it with ... associated with the recommendation to run the PowerShell command...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@chaliy, does your
newtenantid
has any subscriptions? I mean, if you runaz account list
, do you see any subscriptions associated with it? If not, which is likely, then there are no good workaround. I plan to fix this issue in the next few weeks.@yugangw-msft I am glad to hear that! looking forward to try it out…