What makes a good DSC Resource

At this point, we've covered the structure, syntax, and how to create DSC Resources for both PowerShell v4 and v5. Even with this knowledge, it is good to step back and consider what makes up a good DSC Resource. Remember when we were covering DSC configuration scripts in the previous chapter and we spent some time on best practices for creating them? The same approach applies here.

Idempotent

It is up to you to uphold the tenants of idempotency that we have been learning over the course of this book in each DSC Resource you author. The DSC Resource is the last stop in the line of executions that determines whether the current state of the target node is the desired state we described in the DSC configuration script. ...

Get Learning PowerShell DSC 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.