mountainss Cloud and Datacenter Management Blog

Microsoft SystemCenter blogsite about virtualization on-premises and Cloud


Leave a comment

#Microsoft Azure CLI 2.0 in Ubuntu #Bash of #Windows 10 #Linux #Azure #DevOps

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. 

    1. Modify your sources list.
      • 32-bit system
        Copy
        bash
        echo "deb https://packages.microsoft.com/repos/azure-cli/ wheezy main" | \
             sudo tee /etc/apt/sources.list.d/azure-cli.list
        
      • 64-bit system
        Copy
        bash
        echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ wheezy main" | \
             sudo tee /etc/apt/sources.list.d/azure-cli.list
        
    2. Run the following sudo commands:
      Copy
      bash
      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

Advertisements