Make sure you specify a tenant ID in the request.
Try:
Connect-AzureAD -TenantId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
If you just use Connect-AzureAD
, the TenantDomain will be "User" and it may pull up the wrong tenant.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When I log into portal.azure.com and view the tenant id it shows one thing. I can navigate around and do things as expected.
When I use powershell and connect-azuread it returns with a different tenant id and no commands seem to work.
Using my global admin account. Same ID and password. This is an account that was set up to do training and testing.
Any ideas as to the disconnect? Am I missing something?
Make sure you specify a tenant ID in the request.
Try:
Connect-AzureAD -TenantId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
If you just use Connect-AzureAD
, the TenantDomain will be "User" and it may pull up the wrong tenant.