resourceGroups property

List<OSPolicyResourceGroup>? resourceGroups
getter/setter pair

List of resource groups for the policy.

For a particular VM, resource groups are evaluated in the order specified and the first resource group that is applicable is selected and the rest are ignored. If none of the resource groups are applicable for a VM, the VM is considered to be non-compliant w.r.t this policy. This behavior can be toggled by the flag allow_no_resource_group_match

Required.

Implementation

core.List<OSPolicyResourceGroup>? resourceGroups;