DSC icon indicating copy to clipboard operation
DSC copied to clipboard

FilterGroup

Open SteveL-MSFT opened this issue 2 years ago • 1 comments

Summary of the new feature / enhancement

It may be useful to have a FilterGroup (perhaps implemented in dsc) that will conditionally apply it's sub-configuration depending on the filter rules.

In this case, the FilterGroup resource would have a filter property which can just point to another resource that acts as a filter (via test). In this case, it could use registry resource, wmi, etc... to test for applicability.

Proposed technical implementation details (optional)

No response

SteveL-MSFT avatar Dec 12 '23 20:12 SteveL-MSFT

Thinking about this, this group is essentially the AssertionGroup except that on a test operation failure, it doesn't report the configuration as failed, but something else like skipped. So perhaps we need to have a well defined result to indicate skip configuration so dsc can report that configuration was skipped but not failed and the structure of this group would be the same as AssertionGroup.

SteveL-MSFT avatar Dec 14 '23 17:12 SteveL-MSFT