A Comprehensive Guide
Introduction
Setting up an Active Directory Domain Controller (AD DC) in Azure offers a scalable and reliable solution for managing network resources and user authentication. This guide outlines the steps to ensure a robust and secure network infrastructure
Prerequisites
Prerequisites:
- Azure subscription,
- Basic knowledge of Active Directory and Azure services,
- Permissions to create VMs and other resources in Azure
Step 1: Create a Virtual Network
A virtual network (VNet) isolates and secures your resources. Steps:
1.1 Navigate to Azure Portal
Log in to the Azure portal.
1.2 Create a New VNet
- Select “Create a resource” from the left-hand menu.
- Search for “Virtual Network” and select it.
- Click on “Create” and fill in the required details:
- Name: Enter a name for your VNet.
- Address space: Provide an IP address range (e.g., 10.0.0.0/16).
- Subscription: Select your Azure subscription.
- Resource group: Choose an existing resource group or create a new one.
- Location: Select the region closest to your users.
Configure Subnets:
Under the “Subnets” tab, create a new subnet with an appropriate address range (e.g., 10.0.1.0/24).
Review and create the VNet.
Step 2: Create a Virtual Machine
Now, you’ll create a VM to host your AD DC.
2.1 Create a New VM
- Navigate to “Create a resource” and search for “Virtual Machine”.
- Select “Create” and fill in the following details:
- Name: Enter a name for your VM.
- Image: Choose a Windows Server image (e.g., Windows Server 2019 Datacenter).
- Add an additional Hard Disk to host Sysvol directory.
- Size: Select an appropriate size based on your requirements.
- Administrator account: Provide a username and password.
- Inbound ports: Allow RDP (port 3389) for remote access.
Under “Networking”:
Select the VNet and subnet you created earlier.
Review and create the VM.
Step 3: Install Active Directory Domain Services
Once the VM is running, you need to install Active Directory Domain Services (AD DS).
3.1 Connect to the VM
- Use Remote Desktop Protocol (RDP) to connect to the VM.
- Log in with the administrator account you created.
3.2 Install AD DS
- Open Server Manager from the Start menu.
- Select “Add roles and features”.
- Proceed through the wizard and select “Role-based or feature-based installation”.
- Choose the server (your VM) from the server pool.
- Under “Server Roles”, select “Active Directory Domain Services”.
- Confirm the installation and add the required features.
- Complete the wizard and install AD DS.
Step 4: Promote the Server to a Domain Controller
After installing AD DS, you need to promote the server to a domain controller.
4.1 Configuration
- In Server Manager, click on the notification flag and select “Promote this server to a domain controller”.
- Choose “Add a new forest” and provide a root domain name (e.g., yourdomain.com).
- Configure the domain and forest functional levels (choose the latest version available).
- Provide a Directory Services Restore Mode (DSRM) password.
- Select your additional Hard Drive that you added when creating the VM for your Sysvol directory
- Proceed through the wizard, reviewing and completing the configuration.
Step 5: Configure DNS and DHCP
To ensure seamless network operations, configure DNS and DHCP settings.
5.1 Configure DNS
- In Server Manager, navigate to DNS and configure forward and reverse lookup zones.
- Create necessary DNS records for your domain.
Step 6: Verify the Installation
Finally, verify that your domain controller is functioning correctly.
6.1 Check Active Directory
- Open the Active Directory Users and Computers snap-in.
- Ensure that the domain and organizational units (OUs) are created as expected.
6.2 Test DNS
- Use the nslookup command to verify DNS resolution.
- Ensure that all necessary DNS records are present and correctly configured.
Step7: Add DC IP to vNet
This is done so that all new VM’s pick up the DC DNS and Not the Azure DNS which allows them to be able to be domain joined.
7.1 Set DNS IP on Vnet
- Open Vnet that DC is on
- Open DNS setting for Vnet
- Add internal IP of the DC
Conclusion
Creating an Active Directory Domain Controller in Azure involves several steps, from setting up a virtual network to installing and configuring AD DS. By following this guide, you can ensure a secure and efficient deployment, providing a robust foundation for managing your network resources and user authentication.
We hope this guide has been helpful. Should you encounter any issues or need further assistance, please do not hesitate to reach out to our support team.
