Home

Awesome

Azure AD lab

This is a set of Azure Resource Manager Templates that generates an Active Directory lab consisting of a Domain Controller, two Windows servers and a Linux server. I created this so that I could easily deploy AD Labs for students in my PowerShell classes, so it's geared toward spinning up multiple, identical labs.

One of the Windows servers is intended to be used as "home" box, where students will do work while the other is intended to be an example server for the environment. The Linux box will be used to run Metasploit and Empire as part of class exercises.

How it works

New-PowerShellClassLab.ps1 provides a function called New-PowerShellClassLab which takes the following parameters:

The New-PowerShellClassLab function calls Invoke-CreatePowerShellClassLab which uses Azure Resource Manager Templates to create the Infrastructure. The are plenty of variables hard coded in the function which you may want to customize to your needs. Their purposes should be clear.

Each lab is created in it's own Resource Group, so for easy tear down a Remove-AllAzureResourceGroups script is provided.

Prerequisites

Credits

The following resources were used to put this together: