You can install Azure CLI 2.0 with the MSI and use it in the Windows command-line, or you can install the CLI with apt-get on Bash on Ubuntu on Windows.
To install the CLI on Windows and use it in the Windows command-line, download and run the msi.
Note
When you install with the msi, az component
isn't supported.
To update to the latest CLI, run the msi again.
To uninstall the CLI, run the msi again and choose uninstall.
-
If you don't have Bash on Windows, install it.
-
Open the Bash shell.
-
Modify your sources list.
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" | sudo tee /etc/apt/sources.list.d/azure-cli.list
- Run the following sudo commands:
sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 417A0893
sudo apt-get install apt-transport-https
sudo apt-get update && sudo apt-get install azure-cli
- Run the CLI from the command prompt with the
az
command.
Note
When you install with apt-get, az component
isn't supported.
To update the CLI, run sudo apt-get update && sudo apt-get install azure-cli
again.
To uninstall, run sudo apt-get remove azure-cli
.
- Create private keypair
ssh-keygen -t rsa -b 4096
brew update && brew install azure-cli
brew upgrade azure-cli
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/7607de411f8ac0ad926ff2caadf8a9abf713cec8/Formula/azure-cli.rb
brew reinsall azure-cli.rb
https://github.com/yangl900/armclient-go#how-to-use-it
curl -sL https://github.com/yangl900/armclient-go/releases/download/v0.2.3/armclient-go_macOS_64-bit.tar.gz | tar xz
https://kubernetes.io/docs/tasks/tools/install-kubectl/
az aks install-cli
brew install kubernetes-cli
brew upgrade kubernetes-cli
Install autocompletion
kubectl completion -h
brew install kubernetes-helm
brew upgrade kubernetes-helm
az extension add --name aks-preview
az extension update --name aks-preview
remove existing installation of preview cli
az extension remove --name aks-preview
https://github.com/ohmyzsh/ohmyzsh
https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/kube-ps1
#https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/kube-ps1
#https://github.com/jonmosco/kube-ps1
PROMPT=$PROMPT'$(kube_ps1) '
source "/usr/local/opt/kube-ps1/share/kube-ps1.sh"
#https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/local/share/zsh-syntax-highlighting/highlighters
#ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#999999,bg=cyan,bold,underline"
#https://github.com/zsh-users/zsh-autosuggestions
#bindkey '^ ' forward-word
bindkey '^ ' end-of-line
#https://blog.nillsf.com/index.php/2020/02/17/setting-up-wsl2-windows-terminal-and-oh-my-zsh/