Creating PowerShell MOF-based custom DSC resources

We have touched on how to create PowerShell MOF-based DSC resources briefly as we have worked our way through this book, and here, we will dive into the details of doing that in depth. We will cover the folder structures and files needed as well as the mindset and best practices necessary in order to make custom DSC resources that are effective and useful to you.

This section was titled PowerShell V4 custom DSC resources in the first edition of this book. Since then, the term MOF-based has been solidified as the correct term to use for this type of DSC resource. This makes sense, as you will see that an MOF-based DSC resource is supported from PowerShell V4 up to V6 (at the time of writing this).
Before continuing, ensure that you are familiar with creating PowerShell v2 modules. Knowing how to create and use PowerShell modules is the key to understanding how DSC resources are made.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset