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?
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.
az graph. Query the resources managed by Azure Resource Manager. az group. Manage resource groups and template deployments.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With