Support `--what-if` for built-in resources

Open
#1,529 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
rust
Domain
devops

Research direction

Start by tracing the built-in resources named in the checklist, especially FeatureOnDemandList and OptionalFeatureList, alongside their get, set, and export operations. Compare how --what-if is handled for the checked resources, then verify that each listed resource can preview its pending changes without applying them.

Written by the indexing model from the issue text.

Description

Issue-Enhancement Needs Triage
Summary of the new feature / enhancement

As a user,
I want to be able to call --what-if on built-in resources,
So I can preview the changes it is going to apply.

Proposed technical implementation details (optional)

With DSC v3.2 shipped, a couple of new built-in resources are introduced with get, set, and export. But these built-in resources are perfect candidates to implement/showcase --what-if:

  • Microsoft.Windows/FirewallRuleList
  • Microsoft.Windows/Service
  • Microsoft.Windows/FeatureOnDemandList
  • Microsoft.Windows/OptionalFeatureList
  • Microsoft.Windows/UpdateList
  • Microsoft.OpenSSH.SSHD/sshd_config
  • Microsoft.OpenSSH.SSHD/Subsystem
  • Microsoft.OpenSSH.SSHD/SubsystemList
  • Microsoft.OpenSSH.SSHD/Windows
Dominant language
Rust
Stars
546
Forks
84
Avg merge
2d 9h
Merged PRs (30d)
25

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PowerShell/DSC

All issues in PowerShell/DSC

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.