Now, let’s discuss How to Install Azure CLI on macOS. Homebrew 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.
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 https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
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
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.
I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.