Azure Policy definitions addToNetworkGroup effect
The addToNetworkGroup
effect is used in Azure Virtual Network Manager to define dynamic network group membership. This effect is specific to Microsoft.Network.Data
policy mode definitions only.
With network groups, your policy definition includes your conditional expression for matching virtual networks meeting your criteria, and specifies the destination network group where any matching resources are placed. The addToNetworkGroup
effect is used to place resources in the destination network group.
To learn more, go to Configuring Azure Policy with network groups in Azure Virtual Network Manager.
Next steps
- Review examples at Azure Policy samples.
- Review the Azure Policy definition structure.
- Understand how to programmatically create policies.
- Learn how to get compliance data.
- Learn how to remediate non-compliant resources.
- Review Azure management groups.