The Azure command-line tools are available through Homebrew on macOS High Sierra, which makes installing as easy as running the following two commands:
$ brew update$ brew install azure-cli
Ubuntu 17.04 users can run the following commands:
$ echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" | sudo tee /etc/apt/sources.list.d/azure-cli.list$ sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893$ sudo apt-get install apt-transport-https$ sudo apt-get update && sudo apt-get install azure-cli
Once installed you need to log in to your account. To do this run the following:
$ az login
When you run the command you will be ...