Build an Active Directory Forest in Microsoft Azure (IaaS)

Creates a Windows Server 2012 R2 Active Directory forest in Microsoft Azure (IaaS). Ideal for testing. Can be executed as an Azure Automation run book or as a stand-alone script.

5 Star
5,441 times
Add to favorites
Windows Azure
E-mail Twitter Digg Facebook
  • Premium Storage option
    2 Posts | Last post September 24, 2015
    • This is a Great script which I have used loads recently ... is there a way to add premium storage for the DS series servers and enable the member servers have the option to choose premium or standard storage per member VM?
      Thanks again for sharing this great script 
    • Hey, Stephen,
      I'll look to add it in the next version. I can't commit to a date, but I'll look into this functionality.
  • Runbook import
    2 Posts | Last post May 21, 2015
    • Ian, Nice work. Is it possible to import the script as a Automation runbook? When I try I'm getting an import error with a helpful output of please try again later.
    • Paul, 
      Big apologies - missed this one.
      Have a look at Noah's efforts below.
  • Cloud Service creation and name uniqueness
    4 Posts | Last post March 25, 2015
    • Hi Ian, thanks for this well-crafted script. I'm starting to work with it and noticing a problem when running the Create-VM function, which is the error "New-AzureVM : ResourceNotFound: The hosted service does not exist.". Digging in a little further, I also see "The specified DNS name is already taken." Maybe I'm missing it, but is the script creating a cloud service somewhere to validate the name is available? Or is this done implicitly during the first call to New-AzureVM, which leaves open that the specified name is already in use?
      If so, perhaps could add a call to New-AzureService first and append a random suffix for Cloud Service name to ensure uniqueness? Thanks, 
    • Thanks for that, Noah. An oversight on my part... I've added additional validation on the -ServicePrefix parameter. Please let me know how you get on.
      Cheers, Ian.
    • Thanks Ian. I ended up putting together a similar solution in the form of an Azure Automation runbook and leveraged your example of creating the VNet, very helpful. The runbook:
    • Nice!