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 systemCopybash123<span class="hljs-built_in">echo</span> <span class="hljs-string">"deb https://packages.microsoft.com/repos/azure-cli/ wheezy main"</span> |sudo tee /etc/apt/sources.list.d/azure-cli.list
- 64-bit systemCopybash123<span class="hljs-built_in">echo</span> <span class="hljs-string">"deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main"</span> |sudo tee /etc/apt/sources.list.d/azure-cli.list
- 32-bit system
- Run the following sudo commands:Copybash1234sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 417A0893sudo apt-get install apt-transport-httpssudo apt-get update && sudo apt-get install azure-cli
- Modify your sources list.
When you install with apt-get, az component
isn’t supported. To update the CLI, use the following commands:
1 2 | sudo apt-get update && sudo apt-get install azure-cli |