"You must do the thing you think you cannot do."
- Eleanor Roosevelt
- Eleanor Roosevelt
In this chapter, you will learn the definition and syntax of a DSC resource. This entails both the code/syntactic elements as well as the folder structure and placement. We will spend significant time covering the purpose of a DSC resource and best practices to develop custom DSC resources; we'll do this by showing examples of badly authored DSC resources and working on them until they are well-defined DSC resources. We will then explain class-based DSC resource differences and how you should handle them compared to their V4 counterparts.
In this chapter, we will cover the following topics:
- What are DSC resources?
- How do you find DSC resources?
- Creating a PowerShell MOF-based DSC resource.
- Creating a PowerShell class-based DSC resource.