azure-policy icon indicating copy to clipboard operation
azure-policy copied to clipboard

Can't retrieve the name property of Network Security Rule during policy evaluation

Open eehret opened this issue 1 year ago • 0 comments

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'

eehret avatar Jul 12 '23 00:07 eehret