PSRule
PSRule copied to clipboard
Fix aggregation of reasons with $Assert.AnyOf()
Description of the issue
When using $Assert.AnyOf reasons by child statements are not returned.
Example case: https://github.com/Azure/PSRule.Rules.Azure/pull/2872
To Reproduce
Steps to reproduce the issue:
$Assert.AnyOf(
$Assert.HasFieldValue($firewall, 'properties.publicNetworkAccess', 'Disabled'),
$Assert.HasFieldValue($firewall, 'properties.defaultAction', 'Deny')
)
Module in use and version:
- Module: PSRule
- Version: 2.9.0