July 19, 2015 Β· 22 min Β· Russ Mckendrick | Suggest Changes
As regular readers will know I really like the tools provided by Hashicorpβand today I found an excuse to use one. I needed to bring up a Virtual Machine in Microsoft Azureβ. I hadnβt logged into Azure for quite a while so imagine my shock when I opened the dashboard, itβs not that great and the beta of the new one isnβt that brilliant either. It was so bad I tweeted about itΒ β¦.
The Azure control panel (both the beta and existing one) is awful.
I decided that it maybe more straight forward to launch my test Virtual Machines using Terraform rather than going through the dashboard, apart from the storage container which I created ahead of launching my configuration.
Terraform is straight forward to install if you have Homebrewβinstalled, none Mac users can follow the install guideβ.
Terraform & Azure 1/6
There is a Cask version of terraform, this does not ship with the Azure provider so use the main brew package instead. Graphvizβis installed so that the graph functionality can be used.
First off I checked everything was OK with the configuration using terraform plan;
Terraform & Azure 2/6
As you can see everything is good to go, I also generated graphical overview using terraform graph which shows how it looks;
Terraform & Azure 3/6
As everything looked good it was time to apply the configuration and launch the Virtual Machine using terraform apply;
Terraform & Azure 4/6
As you can see from the GUI below it launched the Cloud Service and Virtual Machine as defined.
I then used terraform show to query my instance to get the computed elements of the configuration;
Terraform & Azure 5/6
I connected to the Virtual Machine, did what I had to do (thats a whole other blog post) and then finally tore down the Virtual Machine and Cloud Service using terraform destroy;
Terraform & Azure 6/6
As a Mac / Linux user I found the whole experience to be a lot more what I am used to with other cloud services and a lot less βMicrosoftβ than I feared.