Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mac - az command not found azure

I am trying to install Azure CLI 2.0 on my mac. I followed official documentation but facing this error.

bash: az: command not found

How can I fix this error on mac?

like image 280
Jahanzaib Aslam Avatar asked Apr 26 '17 20:04

Jahanzaib Aslam


People also ask

How do I get Azure command-line on Mac?

For the macOS platform, you can install the Azure CLI with homebrew package manager. Homebrew makes it easy to keep your installation of the CLI update to date. The CLI package has been tested on macOS versions 10.9 and later.

What is AZ command in Azure?

az graph. Query the resources managed by Azure Resource Manager. az group. Manage resource groups and template deployments.

How do you check Azure CLI is installed or not?

After installing the CLI for the first time, check that it's installed and you've got the correct version by running az --version . If you're using the Azure classic deployment model, install the Azure classic CLI.


1 Answers

rather than following this link https://docs.microsoft.com/en-us/cli/azure/get-started-with-azure-cli I suggest to install using home-brew on mac. Its simpler

brew update && brew install azure-cli

ref: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-macos

like image 171
Akash Verma Avatar answered Nov 15 '22 09:11

Akash Verma