Mac - az command not found azure
I am trying to install Azure CLI 2.0 on my Mac. I followed the official documentation but ran into this error.
bash: az: command not found
How can i fix this error on mac?
source to share
I faced the same problem.
Find a way to create the ".bash_profile" file. This file usually (always?) Exists in the / Users / myusername / folder
Then you will create a file or edit a file.
Here are my before and after.
export PATH=$PATH:/Applications/Terraform
export M2_HOME=/Users/shollid3/apache-maven-3.6.0
export PATH=$PATH:$M2_HOME/bin
and after
export PATH=$PATH:/Applications/Terraform
export PATH=$PATH:/usr/local/homebrew/bin
export M2_HOME=/Users/shollid3/apache-maven-3.6.0
export PATH=$PATH:$M2_HOME/bin
Obviously, the addition
/ Usr / local / homebrew / bin
where is my "az"
My "paper trail" was:
this
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-macos?view=azure-cli-latest
led me to this:
https://docs.brew.sh/Installation.html
and in the end I installed "az" in / usr / local / homebrew / bin
But no matter where you have "az" you can see how to add / edit bash_profile to get a path pointing to where "az" is.
source to share