This lab walks through the process of configuring Azure virtual machines using Azure Automation State Configuration (DSC).
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Import the Configuration
- Download ServerConfiguration.ps1 to your computer.
- Import
ServerConfiguration
into the Automation Account.
- Import PowerShell Modules
Import the modules listed below into the automation account:
ActiveDirectoryDsc
DnsServerDsc
StorageDsc
- Create Shared Resources
- Create an automation variable with the name
DomainName
and a value ofcorp.barrierreefaudio.com
. - Create an automation credential with the name
ServerAdmin
, usingadmin_user
as the username and the Lab VM password as the password. - Create another automation credential with the name
DSRMPassword
, using any username and any password. - Create an automation credential with the name
EnterpriseAdmin
, using[email protected]
as the username and the Lab VM password as the password.
- Create an automation variable with the name
- Compile the Configuration
Compile
ServerConfiguration
.- Onboard the Nodes
Onboard
BRADC1
andBRADC2
into Azure Automation State Configuration.- Review Configuration Compliance
Review the configuration compliance.