Skip to content

Module Config #2848

Answered by BernieWhite
sapritchard asked this question in Q&A
Apr 1, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @sapritchard 95% of the options listed here https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Options/ apply to global PSRule options, a small subset can be used in baselines (called out at the top of the document).

To set these options with YAML, set these in ps-rule.yaml instead of a rule. You can also set most by environment variable.

These options are read once when PSRule is executed, and they affect global configuration.

There is an example ps-rule.yaml here: https://microsoft.github.io/PSRule/v2/concepts/PSRule/en-US/about_PSRule_Options/#example-ps-ruleyaml

The file ps-rule.yaml is automatically discovered in the current working path from where PSRule is …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sapritchard
Comment options

Answer selected by sapritchard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants