Spawn a Linux VM on Azure With the click of a button - tutorial repo
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Ubuntu Server 15.10 - Linux on Azure 101

Spawn a Linux VM on Azure with the click of a button

and by using your customized JSON template file!

All these buttons were generated via the azuredeploy.json template present at the root of this github project:

These buttons all point to a script in the gen directory, the first button points to azuredeploy.json, the other point to azuredeploy-1.json, -2 and -3.json.

This will deploy a somewhat big VM (that also costs ~40 Eurocent per hour!) with the default settings.

Also my public key is in there so I STRONGLY SUGGEST you either change it or to fork the project and edit the configuration file yourself:

To be able to use this button in your forked repo you have to:

  • Edit the file
  • Change my username (makevoid) to yourusername.
  • There's no step three! :)


More infos:

This template allows you to deploy a simple Linux VM using a few different options for the Ubuntu Linux version, using the latest patched version. This will deploy in North Europe a Standard_D12_v2 VM.

This template is based off the official vm-simple-linux template:

Specs and $$:

Things to Know

This is the base file you want to edit:

You can replace <USR> with something like user-123
You can replace <USRID> with something like 123

You can try my ruby script by running ruby azure_vm.rb that will regenerate all the files currently presend in the gen directory, It's a simple script so you can tweak it or re-write it to change IDs and Names.

You can drop the output file into the Edit Template section in the Azure Portal

Click three times Next/Create and you will be good to go.

Extra notes:

The last command of a script executes a cp (copy) command to copy your public key to the root user so you can directly SSH as root. You can append another command after that by using bash ; and/or && features. That way you can run multiple commands, for example download a bash script from github / gist or wherever and run it to install whatever you want. Docker maybe?