mountainss Cloud and Datacenter Management Blog

Microsoft SystemCenter blogsite about virtualization on-premises and Cloud

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

Leave a comment


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

Author: James van den Berg

I'm Microsoft Architect and ICT Specialist and Microsoft MVP System Center Cloud and Datacenter Management

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s