Creating a custom PowerShell v4 DSC Resource
We have touched on how to create PowerShell c4 DSC Resources briefly as we have worked our way through this book, and here, we will dive into the details of doing so 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.
Note
Before continuing, ensure that you are familiar with creating PowerShell v2 modules. Knowing how to create and use PowerShell modules is the key in understanding how DSC Resources are made.
The folder structure of a v4 DSC Resource
A v4 DSC Resource has a strict folder structure. By convention, each PowerShell module that contains one or more DSC Resources ...
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.