azure-policy
azure-policy copied to clipboard
Can't retrieve the name property of Network Security Rule during policy evaluation
We're trying to create a policy rule that uses network security rule name as part of the conditions for rule evaluation. It seems that currently there are problems retrieving this.
The following yields an empty value always:
[field('Microsoft.Network/networkSecurityGroups/securityRules[*].name')]
Also could someone please confirm that the following issue was implemented and is still implemented? https://github.com/Azure/azure-policy/issues/317
Executing this seems not to show any aliases for the name property
Get-AzPolicyAlias -ResourceTypeMatch 'securityRules'