public bool AllowNoResourceGroupMatch { get; set; }
This flag determines the OS policy compliance status when none of the
resource groups within the policy are applicable for a VM. Set this value
to true if the policy needs to be reported as compliant even if the
policy has nothing to validate or enforce.
public RepeatedField<OSPolicy.Types.ResourceGroup> ResourceGroups { get; }
Required. 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
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-12 UTC."],[[["\u003cp\u003eVersion 2.4.0 is the latest release, with a range of previous versions available, down to 1.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOSPolicy\u003c/code\u003e class defines the desired state configuration for a Virtual Machine (VM) and is part of the \u003ccode\u003eGoogle.Cloud.OsConfig.V1\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.OsConfig.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOSPolicy\u003c/code\u003e is designed to evaluate resource groups in a specific order, where the first applicable group is selected and the rest are ignored unless \u003ccode\u003eAllowNoResourceGroupMatch\u003c/code\u003e is set to true.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eOSPolicy\u003c/code\u003e include \u003ccode\u003eId\u003c/code\u003e, \u003ccode\u003eMode\u003c/code\u003e, \u003ccode\u003eDescription\u003c/code\u003e, and \u003ccode\u003eResourceGroups\u003c/code\u003e, allowing for detailed configuration and identification of the policy and its associated resources.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable<OSPolicy>\u003c/code\u003e, \u003ccode\u003eIDeepCloneable<OSPolicy>\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its ability to interact with the Google Protobuf framework.\u003c/p\u003e\n"]]],[],null,[]]