Prerequisites
Put an X between the brackets on each line to confirm you have completed them:
Description
The Set-TargetResource includes $global:DSCMachineStatus = 1 and forces a reboot of the node if LCM is configured with RebootNodeIfNeeded = $true
This should not be set in the resource but instead let users decide if you want to restart the node and call a separate reboot resoruce
Suggestion: Remove $global:DSCMachineStatus = 1 from Set-TargetResource
Prerequisites
Put an X between the brackets on each line to confirm you have completed them:
Description
The Set-TargetResource includes
$global:DSCMachineStatus = 1and forces a reboot of the node if LCM is configured withRebootNodeIfNeeded = $trueThis should not be set in the resource but instead let users decide if you want to restart the node and call a separate reboot resoruce
Suggestion: Remove
$global:DSCMachineStatus = 1from Set-TargetResource