Examples/EndToEndExample/1-ConfigureLCMForDeployment.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Configuration ConfigureLCMForDeployment
{
    Node $AllNodes.NodeName
    {
        LocalConfigurationManager
        {
            CertificateId      = $Node.Thumbprint
            ConfigurationMode  = "ApplyAndMonitor"
            RebootNodeIfNeeded = $true
        }
    }
}

###Compiles the example
ConfigureLCMForDeployment -ConfigurationData $PSScriptRoot\ExchangeSettings-Lab.psd1

###Sets up LCM on target computers to decrypt credentials, and to allow reboot during resource execution
#Set-DscLocalConfigurationManager -Path .\ConfigureLCMForDeployment -Verbose -ComputerName XXX