Azure CLI is a command-line tool that let you manage the Azure resources from your local Terminal. Using the Terminal can bring a lot of advantages, like being more efficient and automating tasks with scripts. Let’s install this tool using the Homebrew package manager.
At the time of writing, the current Azure CLI version is 2.0.74.
Prerequisites
- Homebrew
- Python3
- Azure subscription
Installation
Step 1. Open Terminal and update brew.
brew update
Step 2. Install Azure CLI via brew.
brew install azure-cli
Step 3. Run the az
command from Terminal to make sure the installation was successful.
az
Step 4. Login to the Azure console.
az login
It should open the Azure login page from the default browser.
Conclusion
Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.