Working with the AzureRM Modules to create/destroy, spin up/spin down VMs.
The end goal is to have these VMs fully configured as an Active Directory test lab using DSC.
DSC on premise is limited as it does not have a management portal. In Azure we have the Azure Automation portal.
Operations.ps1 contains sample commands to use the functions in this project. This is a good place to start to get an idea.
Contains DSC resources
- newDomain.ps1
- newForest.ps1
- setupDC.ps1
manageModules.ps1 - Set-up module manifest files for all the modules created
Create the initial environment in Azure. Typically run once
- Resource Group
- Networks
- IP Address Scheme
- Public IP
- Storage Account
- Automation Account
- RDP Access
- Get an Azure onboarding key
- Import DSC resources into Azure
- Read where the DSC Config is published
- Register a DSC node configuration
- Add a node configuration
The main function for working with VMs in Azure
- List VMs
- Create VMs
- Start VMs
- Stop VMs
- Remove VMs
Examples
Get-MvVM -Name DC1
New-MmVM -Name DC2
Get-AllMmVM -Verbose