Member-only story
4 Lessons Learned from Creating Class-Based PowerShell DSC Resources
It’s never too late for the party after diving into the Desired State Configuration world.
That was my journey at least when diving into this world and creating my own “class-based” resource.
Class-based DSC resources are already quite long in the game, but when you enter the world of DSC, you notice a rich community behind it that has already evolved when DSC was brought to the world.
However, when you go through the DSC community GitHub page, there are still plenty of script-based DSC resources available, while class-based resources don’t require a .mof
file.
Before getting my hands to work, I wanted to learn and discover what was behind this awesome community and spend time gathering knowledge until I was ready to create a class-based DSC resource.
In this article, I want to share the 4 lessons learned that you can adopt when you’re creating not only class-based but also script-based DSC resources. Time to dive into the first lesson.
Lesson 1: Sampler
During my early days of learning PowerShell from the Learning PowerShell in a Month of Lunches series, another name consistently stood out also: Gael Colas, a passionate DSC fanatic from the start.