You can create and manage Azure Resources using Azure Command-Line Interface (Azure CLI). I’m doing this all on an Ubuntu VM.

  • Azure CLI installation
  • Connect your Azure subscription

First step open your terminal

2016-04-04_11-35-41

We need to install latest nodejs version from ubuntu repository

2016-04-04_11-43-31

Update the local package index with the latest changes

2016-04-04_11-48-22

Now we are ready to install nodejs :

Note: Most of the recent distributions require installing nodejs-legacy in order to get a properly configured npm tool to install the Azure CLI.

Some of the older distributions, such as Ubuntu 12.04, require installing the current binary distribution of Node.js. The following code shows how to do that by installing and using curl.

2016-04-04_12-18-36

Install Azure CLI

2016-04-04_14-03-51 2016-04-04_14-03-12

Use the provided code for login, open up the browser for authentication

2016-04-04_14-12-11

 

2016-04-04_14-16-45

We can check if your account associated with your id :

2016-04-04_14-19-34

List locations for Azure VM

2016-04-04_14-49-07