question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Azure AD] Execute command on non-default tenant

See original GitHub issue

Hey 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:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
yugangw-msftcommented, Apr 18, 2017

@chaliy, does your newtenantid has any subscriptions? I mean, if you run az 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.

0reactions
omerlhcommented, Apr 18, 2017

@yugangw-msft I am glad to hear that! looking forward to try it out…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found