Connect-AZAccount connects me using the wrong account #28271
dbutch1976
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I haven't worked with PowerShell to manage Azure in a long time, and I see there is a new AZ Powershell Module and that the AzureRM PowerShell module has been officially deprecated by Microsoft.
I am trying to connect to my subscription by using this command:
Connect-AzAccount
This opens a browser which I use to log as normal, but even though I specify privaccount@mycompany.com it eventually logs me in with regularlogin@mycompany.com.
I suspect this is because regularlogin@mycompany.com is the one that I am using for all my other SSO authentication on company websites.
If I am connecting to Azure using the GUI I get around this issue by opening the browser in incognito mode, but I don't know if there is some equivalent I need to do in order to order to make sure I use privaccount@mycompany.com, that's the account that has access to all the subscriptions.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions