How to install Azure CLI on Mac

Now, let’s discuss How to Install Azure CLI on macOSHomebrew is an excellent way to manage the Azure CLI installation on the macOS. For a better understanding, you can check out the Azure CLI Tutorial.

How to install Azure CLI on Mac

To install Azure CLI Mac, the first step is to install the Homebrew if you don’t have Homebrew installed on your machine.

Installing Homebrew

You can install the Homebrew on your machine by following the instructions on the official website. As per the instructions mentioned on the website, you need to open the terminal and run the below cmdlet

/bin/bash -c "$(curl -fsSL"

Once you install the Homebrew on your machine, then with the help of the Homebrew, we can easily install the Azure CLI on the macOS.

Installing Azure CLI for Mac

Now, we are ready to install the Azure CLI on the macOS. Now, you can use the below cmdlet to install the Azure CLI on the macOS.

brew update && brew install azure-cli

To check the installation has been completed properly, you can use the below cmdlet


The next step is to try to log into your Azure account using the below cmdlet

az login

Once you execute the above cmdlet, it will prompt you to enter your Azure credential details to sign in.

You can also Install Azure CLI On Windows.

Voila!! Installing Azure CLI on Mac is so easy using the information mentioned in this article.