azure, macos,

Install Azure CLI 2.0 on macOS with brew

Sep 24, 2019 · 1 min read · Post a comment
Install Azure CLI 2.0 on macOS with brew

The 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. We will easily install this tool using the homebrew package manager.

The current version of the Azure CLI is 2.0.74.

Prerequisites

  • Brew
  • Python3 package
  • Azure account

Installation

Step 1. Open terminal and update brew:

brew update

Step 2. Install Azure CLI with brew:

brew install azure-cli

Step 3. Run the az command from terminal to make sure the installation was successful:

az

Azure CLI on macOS

Step 4. Login to the console with Azure credentials:

az login

It should open the Azure login page from the default browser.

For more information, check out the official documentation by Microsoft:
Install Azure CLI on macOS.

Join Newsletter
Get the latest news right in your inbox. We never spam!