Azure CLI 2.0 in Bash
If you use Ubuntu Bash in Windows 10 and like to work with Microsoft Azure Cloud Services you can install Azure CLI 2.0 for Linux
For Debian/Ubuntu based systems, you can install Azure CLI 2.0 via apt-get
.
- Modify your sources list.
- 32-bit system
Copybash
echo "deb https://packages.microsoft.com/repos/azure-cli/ wheezy main" | \ sudo tee /etc/apt/sources.list.d/azure-cli.list
- 64-bit system
Copybash
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" | \ sudo tee /etc/apt/sources.list.d/azure-cli.list
- 32-bit system
- Run the following sudo commands:
Copybash
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
When you install with apt-get, az component
isn’t supported. To update the CLI, use the following commands:
Copy
bash
sudo apt-get update && sudo apt-get install azure-cli