O'Reilly logo

Learning PowerShell DSC by James Pogran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A 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 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required