Cloud Computing

Setup a Windows Server 2012 R2 Domain Controller in Windows Azure: IP Addressing and Creating a Virtual Network

While it’s easy to get a virtual machine (VM) up and running on Windows Azure, you need to take some extra steps before configuring a VM if it’s going to host an Active Directory domain controller or any application that requires a static IP address. In the first of a two-part series on how to install a domain controller in a Windows Azure virtual machine, I’ll look at how IP addressing works in Windows Azure and how to create a virtual network for your domain computers. In part two, I’ll show you how to provision a VM with a persistent IP address and how to correctly install the AD DS role and promote the server to a domain controller

IP Address Assignment in Windows Azure

When you configure a new VM in Windows Azure, it receives an IP address automatically and keeps it until the end of the current session, i.e. until the VM is shutdown, restarted or deallocated. Configuring a network adapter with a static IP address is not supported in Azure VMs, but it is possible to ensure that a VM receives the same IP address every time it is started.

Server applications, such as Active Directory domain controllers (DCs), rely on having a static IP address, so the default method for assigning IP addresses in Azure is a problem if you want to install Active Directory in a VM. The solution to the problem is to create a virtual network in Azure and provision VMs that would require a static IP address in a physical environment to acquire a persistent IP address in Azure.

When you create a virtual network, you need to specify which IP address will be used for AD integrated DNS. In the example that follows, that will be the first and only DC in the forest. The IP address for the integrated AD DNS server must be specified to ensure that VMs are assigned a DNS server address from DHCP, otherwise they won’t be able to locate each other because Azure virtual networks don’t support name resolution.

Sponsored Content

Passwords Haven’t Disappeared Yet

123456. Qwerty. Iloveyou. No, these are not exercises for people who are brand new to typing. Shockingly, they are among the most common passwords that end users choose in 2021. Research has found that the average business user must manually type out, or copy/paste, the credentials to 154 websites per month. We repeatedly got one question that surprised us: “Why would I ever trust a third party with control of my network?

No DHCP reservations are required or can be made. When Windows Azure assigns a persistent IP address to a VM from a virtual network’s address space, the IP address is guaranteed for the lifetime of the VM. The VM can be restarted infinitely, and the IP address will persist until the VM is physically deleted or deallocated (shut down from the Azure management portal). Therefore, it’s important to understand that if you use the shutdown command in the Azure management portal, the VM will be deallocated and its IP address will not persist. If you want to shut down the VM, you must issue a shutdown command in the OS itself.

Build Windows Server 2012 R2 DC in Azure: VM status

If you shut down the OS using the operating system, and the VM was provisioned with a persistent IP address, it will eventually show a Stopped status in the Azure management portal. VMs without a persistent IP will change their status to Stopped (Deallocated). Don’t forget Azure VMs that are not deallocated use compute resources and can incur charges.

Register a DNS Server (in DHCP)

Prior to creating a virtual network, we need to specify which IP address will serve as a DNS server. In this case, it will be our first domain controller. I’m choosing to use a private address range of, but you can use any valid IPv4 private address range.

Login to the Windows Azure management portal. If you don’t ready have an Azure account, you can sign up for a free evaluation.

  • In the left pane of the Windows Azure management portal, click Networks.
  • In the main pane of the management console under networks, click DNS Servers.
  • Click Register a DNS Server.
  • In the pop-up NEW dialog, give the new DNS server a name and IP address. In this example, I’ll call my DNS server CONTOSODNS1 and with as the IP address. Once you are done, click Register a DNS Server in the bottom right-hand corner.

Build Windows Server 2012 R2 DC in Azure: register DNS server

In Azure, the first three IP addresses are not available in private address ranges, so I know that the first usable IP address will be

The new DNS server should now appear in the management portal. At the bottom you’ll see a message to say that the DNS server is being provisioned.

  • Click on the green provisioning icon in the bottom right of the management console to see the current status of the new DNS server. Provisioning should complete after a minute or so.
  • Click OK to dismiss the message.

Create a Virtual Network

Now we need to create a virtual network in the management portal. I’m going to create a virtual network using the address space, but you could equally choose to use the default address space.

  • In the Azure management portal, make sure that Networks is still selected in the left pane, and then click Virtual Networks under networks in the main window.
  • Click Create a Virtual Network.
  • In the pop-up dialog, give the new network a name and select an affinity group.

Build Windows Server 2012 R2 DC in Azure: name Virtual network

In this example, I will call the new network CONTOSONET1 and select the preexisting Contoso affinity group. If you don’t already have an affinity group in Azure, you can select Create a new affinity group from the drop-down menu. If you create a new affinity group at this stage, you will additionally need to select a region and give the new affinity group a name.

  • To continue, click the arrow in the bottom right of the Create a Virtual Network window.
  • Under DNS Servers and VPN Connectivity, select CONTOSODNS1 as the DNS server.


Build Windows Server 2012 R2 DC in Azure: Add a DNS server

The Point-to-Site Connectivity and Site-to-Site Connectivity options do not need to be configured.

  • Click the arrow in the bottom right to continue.
  • On the Virtual Network Address Spaces screen, click add address space. will be added to the existing address space. Click the starting IP address and select from the drop-down menu. Under CIDR (Address Count), leave the default select of /24 (256).
  • Now delete the default address space by clicking the cross to the far right of the address space configuration.
  • Under Subnets, change the name of the subnet to Subnet-1 and the CIDR (Address Count) to /24 (256).
  • When you’re done, click the tick symbol in the bottom right corner of the window.

Build Windows Server 2012 R2 DC in Azure: Configure IP address space

You should now see the new network appear in the main portal window, and see the status change to Created after around 30 seconds.

In the second part of this series, I’ll show you how to provision a new VM with a persistent IP address, and how to correctly install the AD DS role and promote the server to a domain controller.

Related Topics:


Don't have a login but want to join the conversation? Sign up for a Petri Account

Comments (5)

5 responses to “Setup a Windows Server 2012 R2 Domain Controller in Windows Azure: IP Addressing and Creating a Virtual Network”

  1. […] Build Windows Server 2012 R2 DC in Azure: IP Addressing NewsWindows Server WINDOWS CLOUD SERVER 2014 WINDOWS DEPLOYMENT SERVER 2014 I need to be ready to (off of a windows server 2003, 2008 machine) swiftly deploy the OS to possibly Home windows server 2003, 2008, or Purple Hat Linux Company edition to several equipment. Can you remember to advise what Continue reading → OFFICE WINDOWS SERVER 2008 2014 Fort Worth, TX (PRWEB) October 08, 2014 Ben Tiblets, Co-President of Consuro Managed Technology, has announced that Consuro has been awarded a position on the CRN Next-Gen 250 list for 2014. According to the company, the annual Next-Gen 250 Continue reading → MCSA WINDOWS SERVER 2008 2014 MCSA WINDOWS SERVER 2008 I am studying to take my MCSA exams and I now have the software which I need, icluding Windows Server 2008. I would like to know if it is possible to install Windows Server onto my Continue reading → 2014 WINDOWS SERVER 2008 EVENT I want to check the shutdown and power on detailed log of my server dell Poweredge1900. It is working in windows server 2008. Answer by rishab vyou open event viewer, expand windows logs, click system then either find or filter Continue reading → WINDOWS OR LINUX FILE SERVER 2014 Recommended: Support Questions about Windows 8.1 and Windows Server 2012 … Report: Microsoft Windows Server 2012 introduces new storage … How to create a Porticor RAID on Windows Server – Porticor Cloud … Troubleshooting Tools for Windows Server 2003/2008/2012 … Continue reading → 2014 WINDOWS SERVER 2008 R2 I need to port forward a minecraft server on my Server that is running windows server 2008 R2 i have tried and did everything right but i try to get on my server from another computer and it doesnt work Continue reading → WINDOWS VNC SERVER 2014 Basically I want to install a VNC server on a windows computer have it auto start with windows and not have anything show in the system tray. I like tightVNC is there a way I can do this with TightVNC Continue reading → OFFICE WINDOWS SERVER 2008 2014 (PRWEB) October 11, 2014 Triniforce has released Project Kaiser version 12, a new version of web-based project management software. It includes a number of improvements in team collaboration, projects creation, project tree configuration etc ( “Team” tool has been Continue reading → WINDOWS SERVER 2014 Advices I’m beginner in windows server. What is use of windows server & what is the difference between normal os and windows server How many systems are maximum connected with one server. Answer by SureshMore than 30 systems are connected with Continue reading → 2014 WINDOWS NAS SERVER News What is this NAS Server? This really is a main query being asked nowadays. NAS Server is an abbreviation of Network Access Storage Server. This host was really created by an inspiration from Newcastle Connection that was invented inside late Continue reading → 2014 WINDOWS SERVER 2014 St. Louis, Missouri (PRWEB) September 05, 2014 KnowledgeLake, the SharePoint ECM Company, is excited to announce KnowledgeLake Capture for SharePoint has been named to the list of KMWorld’s Trend-Setting Products of 2014. KnowledgeLake Capture is a single solution to successfully Continue reading → Archive2014 WINDOWS FOR VISTA Tips […]

  2. […] Build Windows Server 2012 R2 DC in Azure: IP Addressing NewsWindows Server 2014 WINDOWS SERVER I have 2 computer, and one of them I have windows server 2008 installed. I want to know how I can manage the other computer, like permissions. Both of the computer are in the same LAN. Answer by KevinYour question Continue reading → 2014 OFFICE WINDOWS SERVER 2008 OFFICE WINDOWS SERVER 2008 Whenever I compose this, Im inside the living area where it happens inside making12, better diagnosed because the post space inside a house. Ten min’s earlier Windows Server 2008 theoretically Rams. At the same amount of Continue reading → 2014 WINDOWS SERVER CATALOG LAMP (Linux, Apache, MySQL plus php/perl/python) or the entire ASP, windows host, oracle, which type? I personally might think the LAMP setup will be better considering its all free, what do we men think? Answer by James BLAMP will be Continue reading → 2014 WINDOWS SERVER GROUP POLICY Hi I have a windows server 2008 that is blocking me from downloading attachments from my email and also blocking some website activity. I get the error: Restrictions on this computer are blocking you from completing this action (or something Continue reading → WINDOWS SERVER YEARS 2014 Recommended: Windows Server 2012 Hyper-V Cluster – Part 3: Shared Storage … Microsoft Windows Server 2012 R2 Essentials-CRBS – Releaselog … Edge Show 74 – Virtualize Enterprise Workloads with Windows … Install WMF in Windows Server 2008 / R2 Join Continue reading → WINDOWS SERVER VS WINDOWS 7 2014 Montreal (PRWEB) July 03, 2014 Matrox� Graphics Inc. plus Matrox Video is sharing stand 7.B29 at IBC2013 (Amsterdam, Sept. 13-17). Matrox Graphics Inc. might present fresh KVM extension solutions plus 1080p60 movie over IP encoders/decoders. Matrox Video may showcase movie Continue reading → 2014 WINDOWS SERVER HOSTS FILE I just purchased a nice server,how do I set up a nice user interface that my family can be sent links to download photos,video files and etc.I will be deploying windows server 2014.I want my network(family)to be able to upload/download Continue reading → WINDOWS SERVER TIME SERVER 2014 Smolensk, Russia (PRWEB) October 12, 2014 “We have combined our reporting components for HTML5 and ASP.NET MVC with our reporting tool for ASP.NET, Stimulsoft Reports.Web – says the business manager of Stimulsoft, Andrew Savin. Earlier they were separate software products, Continue reading → 2014 WINDOWS SERVER UPDATE SERVICES Windows Server 2003 Service Pack 2 Is this the 1 i have to upgrade to service pack 2 or is there another adaptation which i need? Answer by garfield-n-odieIf we have Windows XP Home Edition, then you really need to Continue reading → OFFICE WINDOWS SERVER 2003 2014 – 2014 ATM i don’t learn anything regarding window host 2003. Does it Let we install stuff like games or microsoft workplace. Please tell me what they could do or cant do. Answer by buGGedDownyes you are able to install those programs, Continue reading → 2014 WINDOWS HOME SERVER Recommended: Top 8 Improvements Found in Windows Server 2012 R2 Hyper-V … Cross-Version Live Migration | Windows Server 2012 R2 Hyper-V Windows Server Administration Pack? – Spiceworks Windows Vista, Server 2008, Office 2003-2010, Lync Exploited GPU Requirements for RemoteFX on Continue reading → 2014 INSTALL SHAREPOINT WINDOWS SERVER 2014 I understand it demands Windows Server Operating System, thus installed it about my VMWare (may it be installed about Win8 by any any any chance, very unlikely) Whenever I installed SharePoint Foundation 2014, it removed files plus then opened cmd Continue reading → ArchiveHP WINDOWS XP DRIVER 2014 […]

Leave a Reply

IT consultant, Contributing Editor @PetriFeed, and trainer @Pluralsight. All about Microsoft, Office 365, Azure, and Windows Server.