I’m creating a Kubernetes cluster locally on my iMac for testing but will want to deploy it to Azure later, so I need the Azure CLI for my scripts, but how do I install it?
Installation of the Azure Command Line Interface is achieved using “Homebrew”.
Installing Homebrew can be done using a terminal:-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
This will take a while, as it will also install “Command Line Tools for Xcode” as part of Homebrew
Once Homebrew is installed, still in the terminal:-
brew update && brew install azure-cli