Replica DCs on Microsoft Azure – Create the VMs with Azure PowerShell

February 22, 2016 at 4:43 pm in Azure, Cloud, DC, IaaS, PowerShell, Public Cloud by Wim Matthyssen

This blog post is part of the step by step to deploy replica DCs on Azure which can be found here: http://scug.be/wim/2015/09/28/deploying-replica-dcs-in-windows-azure/

In this part I will setup the replica DC VMs with the use of an Azure PowerShell script. To do so follow the steps below:

1) Download the Built_DCs.xlsx file here. When downloaded rename the extension from .xlsx to .csv and adjust the file to your needs. In my example I saved it in the following folder C:\Temp\Azure_setup_DC

 

clip_image003

2) To check if the Cloud Service name used in the .csv already exists on Azure, run the below PowerShell cmdlet. If the name exists, the cmdlet returns $True. If the name does not exist and can be used, it returns $False

 
3) Deploy both Azure IaaS VMs with the following Azure PowerShell script, in my example named Azure_built_DCs.ps1. This file is also stored under the folder C:\Temp\Azure_setup_DC. This script accesses the previously created Built_DCs.csv file were all necessary variables are declared. Both VMs will be built from the Azure Windows Server 2012 R2 Datacenter image, will be placed in an Availability Set and an extra data disk will be attached (stored in the azudata01 Storage Account) with a size of 1023 GB and the host-cache mode set to None

 

clip_image005

4) When the script has run you can verify if all settings are applied correctly from the Azure classic portal

clip_image007

clip_image009

clip_image011

clip_image013

5) You should also be able to RDP into both VMs

clip_image015

image

That ends the second part of this series. Please continue through the rest of the series to complete the setup (if all are available).

Till next time!

Wim Matthyssen (@wmatthyssen)

Share on LinkedInTweet about this on TwitterShare on Google+Share on Facebook