Microsoft has enabled its cloud platform to have a command line (CLI) utility that can interact with the cloud based services. This CLI is installed on the Mac OS X operating system by using homebrew.
To install homebrew, use the package manager. Homebrew makes it easy to install the Azure CLI with very few commands. Before the Azure CLI can be installed, install homebrew as follows:
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)”
Note: Homebrew will tell you what it is installing before performing any of the installs. Make sure it is installing what you want.
Installing Azure CLI
Once homebrew is installed then the Azure CLI can be installed on Mac OS X.
Install as follows:
$ brew update
$ brew install azure-cli
Validating the install
Once the install is done, it can be validated by checking the version of the CLI. This is simply done by using the —version option
$ az —version
[email protected] ~ % az –version
Python location ‘/usr/local/Cellar/azure-cli/2.3.1/libexec/bin/python’
Extensions directory ‘/Users/bocurtis/.azure/cliextensions’
Python (Darwin) 3.8.2 (default, Mar 11 2020, 00:29:50)
[Clang 11.0.0 (clang-1126.96.36.199)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Microsoft has made it really simple to get their command-line tool install on the Mac OS X. This allows for easier development and interaction with the Azure Cloud platform services.