-->
For the macOS platform, you can install the Azure CLI with homebrew package manager. Homebrew makes it easy to keep yourinstallation of the CLI update to date. The CLI package has been tested on macOS versions 10.9 and later.
Brew cask installs macOS apps, fonts and plugins and other non-open source software. $ brew cask install firefox Making a cask is as simple as creating a formula. Homebrew is a package manager designed for installing UNIX tools and other open-source applications on Mac OS X. It will quickly download and install them, compiling them from source. Homebrew Cask extends Homebrew with support for installing binary apps — the kind you normally drag to your Applications folder from DMG files.
The current version of the CLI is 2.0.66. For information about the latest release, see the release notes. To find your installed version and see if you need to update, run
az --version
.Install
Homebrew is the easiest way to manage your CLI install. It provides convenient ways to install, update, and uninstall.If you don't have homebrew available on your system, install homebrew before continuing.
You can install the CLI by updating your brew repository information, and then running the
install
command:Important
The Azure CLI has a dependency on the
python3
package in Homebrew, and will install it on your system, evenif Python 2 is available. The Azure CLI is guaranteed to be compatible with the latest version of python3
published on Homebrew.You can then run the Azure CLI with the
az
command. To sign in, use az login command.- Run the
login
command.If the CLI can open your default browser, it will do so and load a sign-in page.Otherwise, you need to open a browser page and follow the instructions on the command line to enter anauthorization code after navigating to https://aka.ms/devicelogin in your browser. - Sign in with your account credentials in the browser.
To learn more about different authentication methods, see Sign in with Azure CLI.
Troubleshooting
If you encounter a problem when installing the CLI through Homebrew, here are some common errors. If you experience a problem not covered here, file an issue on github.
Unable to find Python or installed packages
Sketchup make 2017 free download 32 bit. There may be a minor version mismatch or other issue during homebrew installation. The CLI doesn't use a Python virtual environment, so it relies on findingthe installed Python version. A possible fix is to install and relink the
python3
dependency from Homebrew.CLI version 1.x is installed
If an out-of-date version was installed, it could be because of a stale homebrew cache. Follow the update instructions.
Proxy blocks connection
You may be unable to get resources from Homebrew unless you have correctly configured it touse your proxy. Follow the Homebrew proxy configuration instructions.
Important
If you are behind a proxy,
HTTP_PROXY
and HTTPS_PROXY
must be set to connect to Azure services with the CLI.If you are not using basic auth, it's recommended to export these variables in your .bashrc
file.Always follow your business' security policies and the requirements of your system administrator.In order to get the bottle resources from Homebrew, your proxy needs to allow HTTPS connections tothe following addresses:
https://formulae.brew.sh
https://homebrew.bintray.com
Update
The CLI is regularly updated with bug fixes, improvements, new features, and preview functionality. A new release is available roughly everytwo weeks. Update your local repository information and then upgrade the
azure-cli
package.Uninstall
If you decide to uninstall the Azure CLI, we're sorry to see you go. Before you uninstall, use the
az feedback
command to let us knowwhat could be improved or fixed. Our goal is to make the Azure CLI bug-free and user-friendly. If you found a bug, we'd appreciate it if you file a GitHub issue.Use homebrew to uninstall the
azure-cli
package.Other installation methods
If you can't use homebrew to install the Azure CLI in your environment, it's possible to use the manual instructions for Linux. Note thatthis process is not officially maintained to be compatible with macOS. Using a package manager such as Homebrew is always recommended. Only use the manualinstallation method if you have no other option available.
For the manual installation instructions, see Install Azure CLI on Linux manually.
Next Steps
Now that you've installed the Azure CLI, take a short tour of its features and common commands.
I have tried multiple times. Can anybody tell me exact detailed steps?My mac os is 10.6.8.It complains about some missing packages.
AshishAshish
5 Answers
user1119116user1119116
I got it working now following command
/usr/bin/ruby -e '$(curl -fsSL raw.github.com/gist/323731)'
.I was running the
mkdir homebrew && curl -L github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C homebrew
I have no idea what the two are doing though AshishAshish
LAOMUSIC ARTSLAOMUSIC ARTS
brew.sh (the official home page) always has the most up-to-date installation instructions.
JBallinJBallin
- Open terminal (shortcut :
Press cmd + space
and enterterminal
inspotlight search)
- Enter command
/usr/bin/ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)'
- Now you’ll be asked to enter password (note : passwords are not visible)
- If you get permission error as below
fatal:
cannot copy '/Library/Developer/CommandLineTools/usr/share/git-core/templates/hooks/pre-receive.sample'
to
'/usr/local/Homebrew/.git/hooks/pre-receive.sample':
Permission denied- Enter command
sudo chown -R $(whoami) $(brew --prefix)/*
- Now you’ll be asked to enter password
- Again enter the same command written in step 2 (shortcut : simply press top arrow button)
- Wait patiently for sometime. You’ll see installation successful after a while.
- Thereafter if you need any help regarding brew then simply enter
brew help
command. Refer this link for additional details.
Jayprakash DubeyJayprakash Dubey