What we learned at our Windows Azure Regcast
On 10 October QA’s Matt Bishop became the latest and the bravest techie to enter El Reg studio for a hands-on session.
Bravely ignoring advice never to work on stage with children or real-time internet feeds he did both, sitting alongside the Reg’s Tim Phillips for an hour of breakneck live Windows Azure configuration.
Why, some of you had speculated, should you need a guide to setting up point-and-click cloud services?
The number of questions we didn’t have time to answer at the end of our session showed how rich the environment is becoming and how much there is to know about Windows Azure.
If you want to live the moment (and maybe configure along with Matt), you can find the on-demand version here. For now here is a quick summary of what we covered.
PaaS still going strong
Our Regcast highlighted Windows Azure’s IaaS capabilities but most users will still want to road-test a few standard PaaS applications. So let’s start there.
When you sign in to the Windows Azure portal, the first item on the menu is “Web Sites”. If you have an existing URL, you simply enter the URL and Windows Azure will upload the data and the application. If you are starting from scratch, clicking the "New" button bottom left brings up what Microsoft calls the Gallery of Apps.
Setting up a WordPress platform took about 30 seconds: pick a URL, specify which servers you want it hosted on (Windows Azure offers two locations in Europe, for example), specify whether you want to restrict multi-tenant mode, have more than one instance or allocate more processor resource, and that’s about it. It is all point and click.
Matt notes that this is the heritage of Windows Azure as distinct from Amazon Web Services.
While Amazon has more tools for some own-build functions at the moment, Windows Azure is built around the idea of a hybrid data centre: it assumes its customers will put some apps in the cloud and some in the data centre, and that they desire little difference in the way they are set up or configured.
Windows and Linux virtual machines
More of Windows Azure’s recent updates (one of the advantages of running a cloud service is that you can add new features every few weeks) extend its IaaS capability. Remember the detail of how to do this are in the Regcast (or in the Windows Azure Training Kit plus more demos), so this is an outline only.
First, setting up Windows virtual machines is predictably straightforward and familiar. The second item on the menu in the portal is “Create VM” and the Gallery in this case lists the virtual machines you can create, from the obvious – Windows Server 2012 – to many different Linux images.
If you want to set up an Ubuntu or CentOS server, for example, the Linux images were created in partnership with the distributors.
Setting up a Windows Server is mostly a case of filling in a few simple boxes – though there is contextual help if you don’t quite know what you are assigning a name to or which resources you are dedicating.
One element it asks you to fill in that causes confusion is your “Cloud Service”. This is a container for your virtual machines that sets the security boundary. Two virtual machines in the same Cloud Service can ping each other.
It is not much more fiddly to set up a Linux server because the images exist in the repository. If you want to set up a fully configured Linux server and save yourself some time, then there is also a list of community supplied images which you reach by clicking on "Images, VM Depot".
Unlike the basic virtual machines they are not checked by Microsoft, but many are supplied by reputable expert sources.
Depending on the applications and the access control that you want to set up, you are going to want to open more ports at this point.
It is a bit more complicated to set up virtual hard disks in Windows Azure, but still quite intuitive. Click on your virtual machine and to the right of the “Add” button at the bottom of the screen is a communications button. It looks a bit like this: “><”.
Click that to download an RDP file and look at your disks. They are stored in triplicate and sparsely so you pay only for the storage that you use.
Attaching a new disk is not too hard. There is a chain icon to the right of the “New” button along the bottom of the screen which provisions the disk. Right click to initialise it (quick format, because if you write to the disk with a full format you are going to pay for all the useless data you have just written).
Matt used PowerShell to upload a hard disk from his own drive to the virtual machines. If you are PowerShell-literate, any of this can be done using scripts, but in this case it is just a couple of commands.
But here is a catch: once the disk is uploaded, it still needs to be configured. Go to the “Disks” tab to create it by selecting the disk data that was uploaded, and ensure that Windows Azure recognises it as a disk and whether it has an OS on it.
Setting up a virtual machines or a virtual hard disk is more or less a point-and-click exercise but many users will want to automate the process. Using PowerShell, provisioning can be done to a template.
“This is part of the promise of the cloud,” Matt explains. “I can have infrastructure in a script, and afterwards tear it down again.”
The same goes for basic configuration. Using PowerShell to set up Apache on the Linux server used a simple downloaded script. Defining Endpoints is prompted by the portal and load balancing is just a question of checking a box.
This is relatively new territory for Windows Azure, one in which there will be rapid development – especially if it wants to make good on the promise of a truly hybrid data centre.
The first iteration of VNs allows users to extend their on-premise infrastructure to the cloud: specify a DNS server from the networking dialogue box (either your own or a public one, or the Windows Azure DNS server will be specified by default).
Then define the IP addresses of the network and set up the VPN gateway using a point-and-click interface. After 20 minutes, you can install the VPN on your machine.
Where to go for more
There are more resources and you can download a 30-day free trial here. Also, you can set spending limits while you are experimenting with Windows Azure.
A tab on the top of the portal lets you know how much you have left in the kitty and what your spending limit is. Those tabs also link to downloads, help, tools and the training kit.
Credit also to Matt: QA is the biggest exponent of Microsoft training and education, and if you decided that an hour of him is not enough, you can book some more of his training here.
And, finally, after Matt finished in the studio with us, he sped off to do a Twitter Q&A session with another Windows Azure expert, sitting on board Concorde. They are both Cloud Pioneers, you see.
If you want to see what they discussed in their twitcast – and see the expert answers to some tough questions – then search for hashtag #CloudPioneers on Twitter. It is the next best thing to travelling at twice the speed of sound.
You can find out more about Microsoft’s Cloud OS in our next hands-on training session "Managing Multi-Vendor Devices with System Center 2012". Click here to register or here to add it to your calendar. ®