Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
file 283 lines (154 sloc) 12.988 kb

Deploy Active Directory using GUI in Windows Azure


Overview

In this lab, you will provision a newly created Windows Server 2012 Virtual Machine called DC01 in Windows Azure using the Windows Azure management console in your web browser and then deploy Active Directory using Server Manager on DC01. DC01 will be the first domain controller in a new forest.

When deploying Active Directory in Windows Azure, two aspects are important to point out.

The first one is the networking configuration. Domain members and domain controllers need to find the DNS server hosting the domain DNS information. You will configure the Azure network configuration, so that the correct DNS server is configured.

Secondly, it is important to avoid the possibility of Active Directory database corruption. Active Directory assumes that it can write its database updates directly to disk. That means that you should place the Active Directory database files on a data disk that does not have write caching enabled.

Objectives

In this hands-on lab, you will learn how to:

  • Provision a data disk to a Virtual Machine
  • Deploy a Domain Controller in Windows Azure

Prerequisites

  1. Complete the Provisioning a Windows Azure Virtual Machine HOL

Note: In order to run through the complete hands-on lab, you must have network connectivity.

Exercises

This hands-on lab includes the following exercises:

  1. Add a new data disk to the virtual machine
  2. Deploy a new domain controller in Windows Server 2012

Exercise 1: Add a new data disk to the virtual machine

You will now modify the virtual machine you already created from the "Provisioning a virtual machine" lab. We will call this VM DC01. We will create and provision a data disk to this existing VM which will be used in exercise 2 to place the AD database files.

Exercise 1 contains 2 tasks:

  1. Attach a data disk to DC01
  2. Configure a new data disk on DC01

Task 1 - Attach a data disk to DC01

  1. In the Virtual Machines section of the Windows Azure portal, select the DC01 virtual machine, and then on the bottom toolbar, click Attach | Attach empty disk.

    Attaching an empty disk

    Attaching an empty disk

  2. In the Attach an empty disk to the virtual machine dialog box, in the File Name text box, type DC01-data.

  3. In the Size (GB) text box, type 10.

  4. Click the check mark icon to continue. Notice that by default a data disk does not have Read or Read Write caching enabled. For use with the Active Directory database files, we need to use a data disk without caching.

    Completing the creation of the disk

    Completing the creation of the disk

Task 2 - Configure a new data disk

  1. In the Virtual Machines section of the Windows Azure portal, select the DC01 virtual machine, and then on the toolbar, click the Connect icon to connect using Remote Desktop Connection.

    Connecting to the DC01 Virtual Machine

    Connecting to the DC01 Virtual Machine

  2. Open the DC01.rdp file, and connect to the virtual machine.

    Note: use the credentials that you inserted when creating the virtual machine in Task 1 of this exercise.

  3. Once on the DC01 virtual machine, open the Server Manager. On the Tools menu, click Computer Management. The Computer Management console opens.

    Opening the Computer Manager console

    Opening the Computer Manager console

  4. In the Computer Management console, in the left pane, select Disk Management. Disk Management recognizes that a new initialize disk is added to the computer, and it will show the Initialize Disk dialog box.

    Selecting Disk Management

    Selecting Disk Management

  5. In the Initialize Disk dialog box, click OK. The new Disk 2 is initialized.

    Initializing the disk 2

    Initializing the disk 2

  6. On Disk 2, right-click the Unallocated space, and then click New Simple Volume. The New Simple Volume Wizard opens.

    Formatting the unallocated space

    Formatting the unallocated space

  7. In the new Simple Volume Wizard, click Next.

    Using the Simple Volume Wizard

    Using the Simple Volume Wizard

  8. On the Specify Volume Size page, click Next. This means that the entire available space (10237 MB) will become a new volume.

    Specifying the volume size

    Specifying the volume size

  9. On the Assign Drive Letter or Path page, ensure drive letter F is selection, and then click Next.

    Assigning the drive letter

    Assigning the drive letter

  10. On the Format Partition page, in the Volume Label text box, type AD DS Data, and then click Next.

    Specifying the volume label

    Specifying the volume label

  11. On the Completing the New Simple Volume Wizard page, click Finish. Windows will quick format the disk, and assign drive letter F:.

    Completing the wizard

    Completing the wizard

    Note: if you are prompted to format the new AS DS Data disk, click OK in the dialog box and format the disk as NTFS.

  12. Close the Computer Management console.


Exercise 2: Deploy a new domain controller in Windows Server 2012

You have just created a base virtual machine called DC01, attached the necessary data disk, and provisioned the disk. We are going to login to DC01 to install and configure active directory and then verify the install was successful.

Exercise 2 contains 3 tasks:

  1. Install the Active Directory Domain Services Role
  2. Configure the Active Directory Domain Services Role
  3. Verify the Domain Controller Installed Successfully

Task 1 - Install the Active Directory Domain Services Role

  1. In the DC01 virtual machine, on the Dashboard page of the Server Manager, click Add roles and features.

    Configuring the server

    Configuring the server

  2. In the Add Roles and Features Wizard, click Next.

  3. On the Select Installation Type page, select Role-based or feature-based installation, and then click Next.

  4. On the Select Destination Server page, click Next.

    Selecting the destination server

    Selecting the destination server

  5. On the Select Server Roles page, select Active Directory Domain Services.

  6. In the Add Roles and Features dialog box, click Add Features.

  7. Once the Active Directory Domain Services role is selected, click Next.

    Selecting server roles

    Selecting server roles

  8. On the Select Features page, click Next.

    Selecting features

    Selecting features

  9. On the Active Directory Domain Services page, click Next.

  10. On the Confirm Installation Selection page, click Install.

  11. Wait for the installation to complete. Do not click Close. Windows is installing the Active Directory Domain Services role.

    Waiting for the installation to complete

    Waiting for the installation to complete

Task 2 - Configure the Active Directory Domain Services Role

  1. When the feature installation has completed, click the link Promote this server to a domain controller. You can do this in the Add Roles and Features Wizard dialog box, or in the listed Server Manager flagged warning tasks.

    Promoting the server

    Promoting the server

  2. On the Deployment Configuration page, select Add a new forest.

  3. In the Root domain name: text box, type contoso.com. Click Next.

  4. Leave all of the default settings and then type Passw0rd! for the DSRM password and click Next.

    Configuring the deployment

    Configuring the deployment

  5. Ignore the warning in the DNS Options section and click Next.

  6. On the Additional Options page, click Next.

  7. On the Paths page, change the folders as follows and click Next.

    Field Value
    Database folder F:\NTDS
    Log files folder F:\NTDS
    SYSVOL folder F:\SYSVOL

    Specifying the paths

    Specifying the paths

    Note: The C: disk is the OS disk, and has caching enabled. The Active Directory database should not be stored on a disk that has write caching enabled. The F: disk is a data disk we added earlier, and does not have caching enabled.

  8. On the Review Options page, click Next.

    Reviewing the options

    Reviewing the options

  9. On the Prerequisites Check page, click Install. The computer is promoted to domain controller.

  10. After a few moments, the DC01 Virtual Machine will restart. You will lose the connection to the restarting Virtual Machine.

    Checking the prerequisites

    Checking the prerequisites

Task 3 - Verify the Domain Controller Installed Successfully

Note: You will need to wait about 2-3 minutes after clicking install in the previous step for the DC01 Virtual Machine to restart in order to be able to connect.

  1. In the Virtual Machines section of the Windows Azure portal, select the DC01 virtual machine, and then on the toolbar, click the Connect icon to connect using Remote Desktop Connection.

    Connecting to the DC01 Virtual Machine

    Connecting to the DC01 Virtual Machine

  2. Open the DC01.rdp file, and connect to the virtual machine.

    Note: use the credentials that you inserted when creating the virtual machine in Task 1 of this exercise.

  3. After logon, in Server Manager, on the Tools menu, click Active Directory Administrative Center. The Active Directory Administrative Center console opens.

    Opening the Active Directory Administrative Center console

    Opening the Active Directory Administrative Center console

  4. In the Active Directory Administrative Center window, in the left pane, expand contoso (local), and then select Domain Controllers. Notice that the domain has the DC01 domain controller listed. This result confirms that DC01 was successfully promoted to domain controller.

    Selecting Domain Controllers

    Selecting Domain Controllers

  5. Close the Active Directory Administrative Center console.


Summary

In this lab, you walked through the steps of deploying a new Active Directory Domain controller in a new forest using Windows Azure virtual machines.

Something went wrong with that request. Please try again.