The core components of the count operator are field, where, and the condition. Each is
highlighted in the following snippet.
field tells count which alias to evaluate members
of. Here, we're looking at the securityRules[*] alias array of the network security
group.
where uses the policy language to define which array members meet the criteria. In this
example, an allOf logical operator groups three different condition evaluations of alias
array properties: direction, access, and destinationPortRange.
The count condition in this example is greater. Count evaluates as true when one or more
members of the alias array matches the where clause.
Learn to regulate network traffic to your Azure resources by configuring and applying network security groups in the Azure portal, improving your network's security posture.