Azure / PSRule.Rules.Azure

Rules to validate Azure resources and infrastructure as code (IaC) using PSRule.
https://azure.github.io/PSRule.Rules.Azure/
MIT License
394 stars 85 forks source link

[BUG] Setting AZURE_PARAMETER_DEFAULTS in a non-default option file #3033

Closed BernieWhite closed 1 month ago

BernieWhite commented 2 months ago

Existing rule

No response

Description of the issue

Currently AZURE_PARAMETER_DEFAULTS is loaded only from a ps-rule.yaml found in the working path during expansion.

If the option file is overridden in the pipeline or manually to a different file is does not use this file.

This is not documented, confusing, and should be fixed.

Error messages

No response

Reproduction

Version of PSRule

2.9.0

Version of PSRule for Azure

1.38.0

Additional context

No response