Thursday, July 28, 2016

Installing Azure CLI on Slackware Linux

The first thing I wanted to do was to get the Azure CLI running on Slackware Linux. I am using the NEW Slackware 14.2 (64 bit) version so I went to Slackbuilds to download from nodejs (NOT node and DO NOT install both - they conflict).

nodejs consists of node-4.4.7.tar.gz and nodejs.SlackBuild. Just Follow the instructions for installing Slackbuilds.

# chmod +x nodejs.SlackBuild
# ./nodejs.SlackBuild (this takes a LOT of time)
# cd /tmp # installpkg nodejs-4.4.7-x86_64-1_SBo.tgz

Download Azure CLI for Linux.  I chose the Nodejs version

This is what you do with it:

# npm install -g azure-cli.0.10.2.linux.tar.gz

Now, do the dual login verification...

# azure login (then follow instructions)

...  and you're ready to manage Azure from your Linux console!

Welcome to Linux for Azure

This will be the place I will gather notes on using the Azure CLI on Linux.

I have only a few posts on Azure so far (on my primary blog):

Azure and Oracle Linux 6

It's a good time to be a Linux sysadmin! 

I have a feeling I have only just begun to tap into this cloud service.  So far, I am pleased to see it has a cross-platform command line utility that seems to work pretty well.  When it comes to the web GUIs - there are some things you can only do with the Classic Azure Portal and some things that you can only do with New Azure Portal BUT most everything is possible with the Powershell or cross-platform CLI.

I pretty much live in a bash shell with the screen multiplexer logged into 35-40 systems all day long.  So, the CLI looked like a good fit.  However, sometimes, the CLI command (or Powershell commands) are really long, complicated and (in my opinion) intuitive.  So, I am starting this blog to keep my notes.  If you find them handy, great!  (And positive comments are always welcome)