Composite
The last item on the list of resources is the composite resource. The composite resource actually plays a special role in the DSC universe. A composite resource consists of one or more configurations that fulfill generic tasks and are mainly used to abstract some of the complexity of DSC, or aid developers with shipping their application.
Take a complex SQL Always On configuration which is needed to support applications. The developer knows how they want their database to look, but doesn't necessarily care much about the infrastructure layer beyond that. As an Ops person, you can provide this infrastructure layer as a composite resource that only takes a few simple parameters, such as DatabaseName, Collation, and PreferredSite
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access