How to only include local rules, without having to select a baseline? #3425
Replies: 1 comment
-
Hi @ThijmenDam, Thanks for the question. When using policy as rules, the generation process automatically creates a baseline that includes all the rule that have been generated. (it's the last item in the generated JSON files). See: https://azure.github.io/PSRule.Rules.Azure/concepts/policy-as-rules/#generated-baseline If you want to only use policy as rules then this is the easiest option just specify this baseline when you call PSRule via Alternatively, you can specify the Also see: Set binding configuration for using custom rules. If this doesn't work for your use case, what would you like to see? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Basically as the title says: how to only include local rules, without having to select a baseline?
We have exported our (many) Azure policies and converted them to PSRule rules, which is the only set of rules we want to include for the time being. This means that we want to exclude all rules that are included in
Azure.All
by default: https://azure.github.io/PSRule.Rules.Azure/en/baselines/Azure.All/I would assume this is a setting in
ps-rule.yaml
, but so far I have not found this in the documentation.Beta Was this translation helpful? Give feedback.
All reactions