az login. Log in with user name and password. This doesn't work with Microsoft accounts or accounts that have two-factor authentication enabled. Azure CLI.