$ curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
$ az login
# if above not working run:
$ az login --use-device-code
# check your Azure account information
$ az account show
# if you have multiple accounts, you need to set the specific account you want to use:
$ az account set --subscription <subscription_ID>
- the
subscription ID
is theid
from result of az account show.