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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.