Go to http://nodejs.org/ and choose your installer
$ npm install -g azure-cli
$ azure account download
$ azure account import ACCOUNT_FILE
$ azure account list
$ azure storage account create storagename --label STORAGE_LABEL --location "Southeast Asia"
$ azure storage account list
// Get storage key, we will use later
$ storage account keys list STORAGE_NAME
NOTE
- stooragename must be 2-24 lowercase, no underscore or other non alphanumeric characters
- storagename must be unique accross azure
// Create ssh key
$ openssl req -x509 -nodes -days 36500 -newkey rsa:2048 -keyout MyAzure.key -out MyAzure.pem
// Command: azure vm create [options] <dns-name> <image> <userName> [password]
$ azure vm create \
--blob-url "http://azurecampstorage.blob.core.windows.net/vhds/azurecamp.vhd" \
--vm-size Small \
--vm-name AzureCamp \
--ssh 22 \
--ssh-cert MyAzure.pem \
--no-ssh-password \
--location "Southeast Asia" \
azurecamp \
b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_1-LTS-amd64-server-20140924-en-us-30GB \
azurecamp
$ azure vm list
$ azure vm show AzureCamp
// Create endpoint
$ azure vm endpoint create AzureCamp 3000 3000