Found out late today that I need a Microsoft Identity Manager 2016 (MIM 2016) demo for tomorrow. Sleep is for pansies, right?
Figured it’d be useful to start automating this in Azure to share the demo load with other demo monkeys so I can get on with riding my bike or playing with my kids like I’m supposed to.
Luckily somebody has done a lot of the work for me, and it works like a charm!
The script at the link above is pretty slick because it starts with a VM image from Azure then installs Active Directory onto it. It will also create domain-joined member servers and even domain-joined client computers. In my case I just want a DC and a member server to run MIM. The script below ran in just minutes, leaving me with a great starting point to do the MIM installation. Sweet!
### Import the Azure PowerShell Module
ipmo 'C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure'
### Get all my goods (this prompts you to logon with your tenant creds)
### Select a subscription to use
Get-AzureSubscription -SubscriptionName 'Craig Demo' | Select-AzureSubscription
### Create a fresh AD Forest with one DC and one Member server
### This cool script came from the Azure Script Center:
### Build an Active Directory Forest in Microsoft Azure
.\Azure_AD_Build.ps1 -ServicePrefix craigSvc -Location 'West US'-AdminUser litAdmin -AdminPassword 'hoofHearted?'-ForestFqdn litware.ca -Domain litware -MemberCount 1