Install Azure CLI on MacBook Pro

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.  

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

bocurtis@Bobbys-MBP ~ % az –version
azure-cli 2.3.1

command-modules-nspkg 2.0.3
core 2.3.1
nspkg 3.0.4
telemetry 1.0.4

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-1100.0.33.17)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Summary

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.

Please follow and like:

Enquire now

Give us a call or fill in the form below and we will contact you. We endeavor to answer all inquiries within 24 hours on business days.