Connect-AzAccount – how to avoid azure device authentication?

1.To login with the user account, try the command as below, make sure your account doesn’t enable the MFA(Multi-Factor Authentication). 2.You can also use a service principal to login, use the command as below. See a similar issue I answered here, it use the old AzureRM module, for Az, just change the last line. If … Read more

Azure az login with tenant

I’m new to Azure stuff so this question may sound silly. Can I login to sub-accounts in Azure using the CLI 2.0? What I mean is to have an equivalent of powershell: I’m trying to automate creation of apps/service principals on our sub accounts. It appears that using PowerShell I can do it without any … Read more