Configuration management refresher

A few weeks pass and you get an escalation call from the application team that your DSC stuff broke their application. A few minutes of investigation using the xDSCResourceDiagnostics module shows successful DSC executions that detected configuration drift and corrected it. After showing this to the application team, they eventually admit that they updated the configuration file used by the Apollo application with different values without telling you since they were used to deploying the application themselves.

Since you had set the LCM to ApplyAndAutoCorrect, DSC had detected the content difference in the file specified in $Node.Apollo.ConfigFilePath and changed it back to the value you specified in $Node.Apollo.ConfigFileContents ...

Get Learning PowerShell DSC - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.