Write your first DSC Resource samples overview
Each of the samples in this section are the completed DSC Resource from one of the implementations of the Write your first DSC Resource tutorial.
The resources manage the fictional TSToy application's configuration files. While the TSToy application isn't a real production application, managing configuration files is a common use-case for resources.
The sample resources support:
- Passing input to the resource command with command line arguments or JSON over stdin.
- Getting the current state of the TSToy application's configuration files without DSC.
- Enforcing the state of the configuration files without DSC.
- Invoking the Get, Test, and Set operations with DSC.
- Declaring instances of the resource in a DSC Configuration document.
The sample code is hosted in the DSC Samples repository. For more information about the specification for the sample code's implementation, see Write your first DSC Resource Specification.
We welcome contributions to the samples repository. For more information, see Contributing to the DSC Samples.