I’m trying to run a simple configuration using ARM template and powershell dsc extensions. The configuration installs windows features related to remote desktop services. When it install the “RDS-RD-Server” feature, the script terminates with the following message in the log:
[2016-04-29T22:03:55] [VERBOSE] [RDSVM]:  A reboot is required to progress further. Please reboot the system. Configuration will not be continued after the reboot. To continue configuration, use Start-DscConfiguration -UseExisting after reboot.
No matter what I set in the configuration regarding RebootIfNeeded or ActionAfterReboot, they are overwritten after the .meta.mof file generation. In the log file, we see that happening here:
[2016-04-29T21:57:53] Executing the configuration function to generate the MOF files.
[2016-04-29T21:57:54] Verifying metaconfiguration for reboot information…
[2016-04-29T21:57:54] WMF 5 or newer, Injecting RebootNodeIfNeeded = False and ActionAfterReboot = “StopConfiguration”
My questions are: why it changes the LCM and how can I have the machine rebooted and the configuration continued after the reboot.