Skip to content

Support only DSC class based resources #13731

@SteveL-MSFT

Description

@SteveL-MSFT

Summary of the new feature/enhancement

Based on discussion within the PowerShell/DSC, Guest Configuration, and DSC Community we're exploring only supporting class based DSC resources for DSC v3. This is a change from the original plan to move from mof to json.

Arguments For

Create a single ecosystem for DSC resource authors and for new DSC resource authors they can find samples of only one type and not need to learn about schema nor keeping the schema in sync with implementation.
Simplify the code in PowerShell engine to only expect class based resources. This will also eliminate any potential bugs in the json code path that was added, but does add initial work to remove that code.
Support for script based + schema resources can be added back later if necessary.
Feedback from DSC Community Call is that everyone would support moving to just class based resources.
Would need to eventually have a tool to help convert existing script based resources to class based (potentially by analyzing the AST).
No need for tool for converting mof schema to json schema nor Test-DscResource cmdlet to validate the implementation matches the json schema.

Arguments Against

There are existing script based DSC Resources for Windows that would need to be ported as classes.
Script resources may be easier to write for non-developers not familiar with classes (but need to learn json schema format).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-DSCDesired State Configuration issuesIssue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifIssue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions