You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a small subset of special purpose subnets that do not support NSGs. Currently the rule takes this into consideration, however the handling is not working correctly for child resources declared outside the parent resource because the name is then declared as {parent-resource-name}/{child-resource-name}.
I assume PSRule does not handle this when the parent resource is not to be found within the same deployment.
It's a low effort to handle this in the rule body.
BenjaminEngeset
changed the title
[BUG] Azure.VNET.UseNGSs not handling cases correctly when subnets declared outside the parent
[BUG] Azure.VNET.UseNGSs not handling cases correctly when subnets are declared outside the parent
Aug 4, 2024
BenjaminEngeset
changed the title
[BUG] Azure.VNET.UseNGSs not handling cases correctly when subnets are declared outside the parent
[BUG] Azure.VNET.UseNGSs is not handling cases correctly when subnets are declared outside the parent
Aug 4, 2024
Existing rule
Azure.VNET.UseNGSs
Description of the issue
There is a small subset of special purpose subnets that do not support NSGs. Currently the rule takes this into consideration, however the handling is not working correctly for child resources declared outside the parent resource because the name is then declared as
{parent-resource-name}/{child-resource-name}
.I assume PSRule does not handle this when the parent resource is not to be found within the same deployment.
It's a low effort to handle this in the rule body.
PSRule.Rules.Azure/src/PSRule.Rules.Azure/rules/Azure.VNET.Rule.ps1
Lines 10 to 33 in 1a08d69
Error messages
No response
Reproduction
Version of PSRule
2.9.0
Version of PSRule for Azure
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: