Windows Azure Infrastructure Services provides cloud-based storage, virtual networks and virtual machines that can be provisioned on-demand to support lab, pilot or production application workloads. In this Step-By-Step hands on lab format we will walk you through the entire process of creating your first server in Windows Azure.
Exercise 1: Get Started with Windows Azure Infrastructure Services
In this exercise, you will activate a free Windows Azure Trial Subscription and then setup two components that will be needed for the other exercises in this lab: a Windows Azure Affinity Group and a Windows Azure Storage Account.
- Sign-up for your FREE Windows Azure Trial Account.
- When signing up for a Free Trial subscription, you will be prompted to login with Microsoft Account (formerly Windows Live ID) credentials. If you do not have valid Microsoft Account credentials, you may create new credentials at https://signup.live.com. For step-by-step instructions see How To Sign up for a Free Microsoft Account (aka LiveID)
- Sign-up for a FREE trial of Windows Azure at http://aka.ms/iaas so that you can follow along with the steps in this Hands-on Lab. For step-by-step instructions see Getting Started With Windows Azure–Step-By-Step Free Cloud Server Hours!
- Note: During the Free Trial sign-up process, you will be asked for credit card information to confirm that you are a legitimate free trial subscriber. Your credit card information is only used to confirm your identity and you will NOT be charged for any Windows Azure services unless you explicitly convert your trial subscription to a paid subscription at a later date.
- Login to the Windows Azure Management Portal.
Login to the web-based Windows Azure Management Portal at http://manage.windowsazure.com with the same logon credentials you used to sign-up for the FREE Trial above.- Once you’ve logged in, you should see the main Windows Azure Management portal dashboard.
- On the blue side navigation bar of the Windows Azure Management Portal, you’ll find the options for managing Virtual Machines, Virtual Networks, Storage and Settings in the cloud. These are the items we’ll be primarily working with in this hands-on lab.
- You may need to scroll the blue side navigation bar up and down to see all of the options.
- Define a new Windows Azure Affinity Group.
Affinity Groups in Windows Azure are used to group your cloud-based services together, such as Virtual Machines, Virtual Networks and Storage, in order to achieve optimal performance. When you use an affinity group, Windows Azure will keep all services that belong to your affinity group running within the same data center as close as possible to each other to reduce latency and increase performance.- Create a new Affinity Group by selecting Settings from the blue side navigation bar in the Windows Azure Management Portal. You may need to scroll the blue side navigation bar down to see this selection.
- On the Settings page, select the Affinity Groups tab on the top navigation bar (you will probably have to scroll down; scroll bar is hidden and can be found by hovering over the right part of the blue NAV pane on the left.
- Click the +ADD button on the bottom navigation bar.
- On the Create Affinity Group form, enter the following details:
Name: Enter a unique name for your new Affinity Group, such as XXXlab01 (where XXX is replaced with your initials) NOTE: if someone else has already done this lab that has the same initials as you, you will need to use something other than your initials in place of XXX in this lab. Just pick another set of letters/numbers to use for the prefix.
Region: Select the “East US” datacenter sub-region.
Click the button to create a new Affinity Group.
- Create a new Windows Azure Storage Account.
Virtual Machines that are provisioned in Windows Azure are stored in the world-wide cloud-based Windows Azure Storage service. In terms of high availability, the Storage service provides built-in storage replication capability – where every VM is replicated to three separate locations within the Windows Azure data center region you select. In addition, Windows Azure Storage provides a geo-replication feature for also replicating your VMs to a remote data center region.- Create a new Storage account by clicking the +NEW button on the bottom toolbar in the Windows Azure Management Portal and then click Data Services | Storage | Quick Create.
- Complete the following fields for creating your Storage account:
- URL: Enter a unique name for your new storage account, such as XXXlabstor01 (where XXX is replaced with your initials)
Region/Affinity Group: Select the Affinity Group you created in Step 3 above.
Enable Geo-Replication: By default, this option is selected. Leave the default option in place.
Click the CREATE STORAGE ACCOUNT button to create your new Windows Azure Storage account.
- URL: Enter a unique name for your new storage account, such as XXXlabstor01 (where XXX is replaced with your initials)
Exercise 2: Register a DNS Server in Windows Azure
Register the internal IP address that our domain controller VM will be using for Active Directory-integrated Dynamic DNS services by performing the following steps:
- Sign in at the Windows Azure Management Portal with the logon credentials used when you signed up for your Free Windows Azure Trial.
- Select Networks located on the side navigation panel on the Windows Azure Management Portal page.
- Click the +NEW button located on the bottom navigation bar and click
Networks | Virtual Network | Register DNS Server. - Complete the DNS Server fields as follows:
- NAME: XXXlabdns01
- DNS Server IP Address: 10.0.0.4
- Click the REGISTER DNS SERVER button.
Next Step: Define a Virtual Network in Windows Azure
Exercise 3: Define a Virtual Network in Windows Azure
Define a common virtual network in Windows Azure for running Active Directory, Database and SharePoint virtual machines by performing the following steps:
- Sign in at the Windows Azure Management Portal with the logon credentials used when you signed up for your Free Windows Azure Trial.
- Select Networks located on the side navigation panel on the Windows Azure Management Portal page.
- Click the +NEW button located on the bottom navigation bar and select
Networks | Virtual Network | Quick Create. - Complete the Virtual Network fields as follows:
- NAME: XXXlabnet01
- Address Space: 10.—.—.—
- Maximum VM Count: 4096 [CIDR: /20]
- Affinity Group: Select the Affinity Group defined in Exercise 1 above.
- DNS Server: Select XXXlabdns01 – the DNS Server registered in Exercise 2 above.
- Click the CREATE A VIRTUAL NETWORK button.
Exercise 4: Configure Windows Server Active Directory in a Windows Azure VM
Provision a new Windows Azure VM to run a Windows Server Active Directory domain controller in a new Active Directory forest by performing the following steps:
- Sign in at the Windows Azure Management Portal with the logon credentials used when you signed up for your Free Windows Azure Trial.
- Select Virtual Machines located on the side navigation panel on the Windows Azure Management Portal page.
- Click the +NEW button located on the bottom navigation bar and select
Compute | Virtual Machines | From Gallery. - In the Virtual Machine Operating System Selection list, select Windows Server 2012 Datacenter and click the button.
- On the Virtual Machine Configuration page, complete the fields as follows:
- Version Release Date: Select the latest version release date to build a new VM with the latest OS updates applied.
- Virtual Machine Name: XXXlabad01
Size: Small (1 core, 1.75GB Memory) - New User Name: Choose a secure local Administrator user account to provision.
- New Password and Confirm Password fields: Choose and confirm a new local Administrator password. Click the button to continue.
Note: It is suggested to use secure passwords for Administrator users and service accounts, as Windows Azure virtual machines could be accessible from the Internet knowing just their DNS. You can also read this document on the Microsoft Security website that will help you select a secure password: http://www.microsoft.com/security/online-privacy/passwords-create.aspx.
- On the Virtual Machine Configuration page, complete the fields as follows:
- Cloud Service: Create a new cloud service
- Cloud Service DNS Name: XXXlabad.cloudapp.net
- Region/Affinity Group/Virtual Network: Select XXXlabnet01 – the Virtual Network defined in Exercise 3 above.
- Virtual Network Subnets: Select Subnet-1 (10.0.0.0/23)
Storage Account: Select the Storage Account defined in Exercise 1 above.
Availability Set: Create an availability set
Availability Set Name: XXXlabad
Click the button to continue.
- On the Virtual Machine Configuration – Endpoints page, click the button to accept the default firewall endpoint values and begin provisioning the new virtual machine.
As the new virtual machine is being provisioned, you will see the Status column on the Virtual Machines page of the Windows Azure Management Portal cycle through several values including Stopped, Stopped (Provisioning), and Running (Provisioning). When provisioning for this new Virtual Machine is completed, the Status column will display a value of Running and you may continue with the next step in this guide. - After the new virtual machine has finished provisioning, click on the name (XXXlabad01) of the new Virtual Machine displayed on the Virtual Machines page of the Windows Azure Management Portal.
- On the virtual machine Dashboard page for XXXlabad01, make note of the Internal IP Address displayed on this page located on the right-side of the page. This IP address should be listed as 10.0.0.4. If a different internal IP address is displayed, the virtual network and/or virtual machine configuration was not completed correctly. In this case, click the DELETE button located on the bottom toolbar of the virtual machine details page for XXXlabad01, and go back to Exercise 2 and Exercise 3 to confirm that all steps were completed correctly.
- On the virtual machine Dashboard page for XXXlabad01, click the Attach button located on the bottom navigation toolbar and select Attach Empty Disk. Complete the following fields on the Attach an empty disk to the virtual machine form:
- File Name: XXXlabad01-data01
- Size: 10 GB
- Host Cache Preference: None
Click the button to create and attach the new virtual hard disk to virtual machine XXXlabad01.
- On the virtual machine Dashboard page for XXXlabad01, click the Connect button located on the bottom navigation toolbar and click the Open button to launch a Remote Desktop Connection to the console of this virtual machine. Logon at the console of your virtual machine with the local Administrator credentials defined in Step 5 above. Accept authorization message(s)
- From the Remote Desktop console of XXXlabad01, create a new partition on the additional data disk attached above in Step 10 and format this partition as a new F: NTFS volume. This volume will be used for NTDS DIT database, log and SYSVOL folder locations. Step-By-Step: Once inside Server Manager, go to Tools (upper right corner menu) then select Computer Management. Inside Computer Management select Disk Management. An “Initialize Disk” window will pop up, make sure the new disk is selected and click OK. Right click unallocated space on Disk 2 and select “New Simple Volume…” Click Next: then Next for the Specify Volume Size. The drive letter should be preconfigured to “F”, click Next: Change the Volume Label to DATA and click Next: Click Finish.
(it may take a bit to see the drive in computer explorer). Once you see the new F: drive in the upper volume window you can close computer management. - Using the Server Manager tool, install Active Directory Domain Services Step-by-Step:
- Active Directory domain services is installed by simply adding the role:
- In Server Manager, click Manage (upper right corner menu) then click Add Roles and Features to start the Add Roles & Features Wizard.
- On the Before you begin page, click Next.
- On the Select installation type page, click Role-based or feature-based installation and then click Next.
- The current server should already be selected, click Next.
- On the Select server roles page, click Active Directory Domain Services, then on the Add Roles and Features Wizard dialog box, click Add Features, and then click Next.
- On the Select features page, click Next.
- On the Active Directory Domain Services page, click Next.
- On the Confirm installation selections page, Turn on the “Restart the destination server automatically if required” check box. On the restart popup alert, select Yes. Then click Install. It could take a few minutes to do the install.
- Once installation finishes, Click Close. We will configure AD in the next step.
- Promote this server to a domain controller in a new forest with the following parameters:
Active Directory Forest name: contoso.com
Volume Location for NTDS database, log and SYSVOL folders: F:- Server Manger – Flag (upper right corner near Manage) – Post deployment configuration – Click “Promote this server to a domain controller”
- On the Deployment Configuration page click Add a new forest then type contoso.com for the Root domain name. then click Next
- On the Domain Controller options page type a secure password and confirm password (you will have to remember this) then click Next.
- On the DNS page, click Next (you can ignore the warning)
- On the Additional Options page, click Next
- On the Paths page, change the C:… paths to F:… then click Next
- On the Review Options page click Next
- On the Prerequisites Check page, review issues then click install. You can ignore the warnings; the last line should say all prerequisites checks passed successfully.
- This will take some time to complete and will reboot your server once complete
- After Active Directory has been installed!
We are not done yet! There is one more simple task that you MUST perform. It will highlight the jaw-dropping performance you can get out of windows Azure!
Exercise 5: Test The Jaw-Dropping Download Performance of Windows Azure
- You should still be logged into the virtual machine. Click Server Manager – Local Server – IE Enhanced Security Configuration – change the On to Off for administrators – Close browser then reopen browser.
- Navigate to http://aka.ms/GetWin2012R2
- Login with your Microsoft Account (LiveID)
- on the download center page Select Windows Server 2012 R2 Datacenter ISO Click GET STARTED NOW
- You may be prompted to update your information. By the time you have gotten here your profile should be up to date but please make sure your City, State, Zip are correct. If you do not want to provide Microsoft with that information, just put in zip code of 02347 (Lakeville, MA). On the update information screens, click Continue.
- An Akamai NetSession Interface will likely come up asking you to download the installer. It is fine to allow the Installer to download and install. This is the Content Delivery Network Microsoft uses so the bits are downloaded close to your physical location.
- On Akamai NetSession Interface – Click here to begin: download the installer. OK to download and Install (this is Content Distribution Network)
- Click Run
- Click Agree on the license agreement page and click Next
- If you get prompted with a windows security alert for firewall access, you can turn on all networks and Allow Access
- Save to D: Temporary Storage 4GB download (this is temp storage and will be automatically deleted when you turn off the server)
- Notice on the right pane of the browser that download is running. Look fast, because it will not be there long
Please share: Tweet
Wow, Azure Rocks! Check it out for yourself with a free account and step-by-step hands on lab by @itproguru http://aka.ms/azRocks
Download the Docx version from http://ITProGuru.com/downloads/hol/Build-Your-First-FREE-Cloud-Server-and-Infrastructure-Step-By-Step-AzRocks.docx
Get Started Now with Windows Server 2012 R2… with these FREE options!
Build Your Lab! Download Windows Server 2012 R2, System Center 2012 R2 and Hyper-V Server 2012 R2 and get the best virtualization platform and private cloud management solution on the market. Try it FREE now! Step-By-Step
Don’t Have hardware? Build Your Lab in the Cloud with Windows Azure Virtual Machines. Try Windows Azure for free with no cost or obligations, and use any OS, language, database or tool. FREE Trial Step-By-Step