This past week I have been working on building a student lab in Azure. The idea is that as students can work on a Windows Server labs with their own preconfigured lab and for free. The way to accomplish this is to have each student register for their own free 90 day trial and then copy over the pre created virtual servers.
While testing this I have found a few interesting things:
|Azure storage is fast.||To copy a 10gig server image from my storage to the students new account was always done in under 10 seconds! Wow, even my local servers aren’t near as fast. I just read today that Azure has the fastest and most stable cloud storage of all the major cloud providers. (Read about that here on Neowin.net)|
|Passwords Still Suck.||Yesterday I was working on a new Windows Server 2008R2 machine that I provisioned in Azure for a student lab. I set the password to “P@ssw0rd”. This was to have it slightly complex but easy enough for students to remember. It only took about three minutes for my RDP session to log me out because someone else had logged in as administrator. I logged back in quickly and tried to change my password. I was quickly kicked out again and before I could log back in my password had been changed and my server was now owned by someone else. The moral of my story is use a complex uncommon password. There are scripts hitting RDP on port 3389 that try the Administrator account with a common password list. They will own your box in under 10 minutes.|
|The Cloud is Cool.||The more I work with Azure IAAS the more I appreciate how awesome it is to have the public “Cloud” especially the free 90 day trial.|
|Setup is easy.||It is easy to setup an environment like this. Below I will publish a step by step guide on how to accomplish this.|
Building the Lab
The first thing to do is to build your servers for the Lab. For example if I were to build a lab on doing an in-place upgrade from Server 2008R2 to server 2012 on a domain controller the steps would be.
|Get your Free Trial Azure Free||NOTE: When activating your FREE 90-Day Subscription for Windows Azure, you will be prompted for credit card information. This information is used only to validate your identity and your credit card will not be charged, unless you explicitly convert your FREE Trial account to a paid subscription at a later point in time. Get your trial here: http://aka.ms/AzureFree|
(RDP to server by selecting Connect at the bottom of the screen and then opening the RDP file that downloads)
|Login to your Azure account and provision a 2008R2 server.
Remember to use a non standard password.
|Configure you Servers||In our example I will install Active Directory. Down the Server2012 ISO to this server. Lastly download a free tool to mount an ISO in Server 2008R2 and install it.|
|De-provision your server||De-provision your server from the Azure Management Portal https://manage.windowsazure.com/
Delete the virtual server
|Download the tools||Now we need to copy the vhd file to the area that your students will copy it from. For this we need the Azure PowerShell command line tools. Download the Windows Azure PowerShell command line tools
|Install the tools||Run the MSI – the latest as of this writing is azuresdk-cli-v0.6.9.msi. Just follow a standard install.|
|Setup the security to your Azure environment.||
Great! We now we have the Windows Azure PowerShell cmdlets installed, but we can’t use them yet because we need to setup a secure connection to our Azure account. To do this we will use a certificate.
You are now ready to manage your Azure Cloud Servers from PowerShell!
|Create your copy command for the students to copy the vhd.||
From the Azure Command prompt:
|Now you are ready for students to create their labs off of your work.
They just setup their azure trial and use the command line tools to copy your vhd to their storage. I will have a link posted to these instructions next week. Here http://mythoughtsonit.com/LinkTBD…