Microsoft.DSC/Group dependsOn with Microsoft.DSC/Assertion #725
Unanswered
csoto-dish
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Can you perhaps paste in the full YAML that you have and put the expected outcomes for each group / server your applying it to as such: name: Schannel Protocols 2025
type: Microsoft.DSC/Group
properties:
$schema: https://aka.ms/dsc/schemas/v3/bundled/config/document.json
resources:
# Resources here |
Beta Was this translation helpful? Give feedback.
2 replies
-
@csoto-dish , coming back to this, probably: https://github.com/PowerShell/DSC/releases/tag/v3.1.0-preview.3 solve the issue, as there was a bug. Can you try it again? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team,
I am attempting to build a yaml config file for DSCv3 that uses a bit of logic with Assertion to determine what configuration to run. I have these configurations set up as Groups with a dependsOn to an Assertion with a nested OSInfo version check. Here is an example:
The Assertion seems to work, however configurations for other Groups in the same yaml file with a dependsOn for their corresponding OS versions are getting applied in order even if their Assertion fails. This is all very new to me, so perhaps I am doing something wrong. Hoping someone can offer some guidance.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions