To manage, monitor, and apply policies to the accounting objects as a group, you create a custom object group.

Prerequisites

Verify that you completed the alert definition for this scenario. See Add Recommendations to the Alert Definition.

Procedure

  1. From the left menu, click Environment > Custom Groups.
  2. Click Add to create a new custom group.
  3. Type a name similar to Accounting VMs and Hosts.
  4. From the Group Type drop-down menu, select Department.
  5. From the Policy drop-down menu, select Default Policy.
    When you create a policy, you apply the new policy to the accounting group.
  6. In the Define membership criteria area, from the Select the Object Type that matches the following criteria drop-down menu, expand vCenter Adapter, select Host System, and configure the dynamic group criteria.
    1. From the criteria drop-down menu, select Relationship.
    2. From the relationships options drop-down menu, select Parent of.
    3. From the operator drop-down menu, select contains.
    4. In the Object name text box, enter acct.
    5. From the navigation tree drop-down list, select vSphere Hosts and Clusters.
    You created a dynamic group where host objects that are the host for virtual machines with acct in the virtual machine name are included in the group. If a virtual machine with acct in the object name is added or moved to a host, the host object is added to the group.
  7. Click Preview in the lower-left corner of the workspace, and verify that the hosts on which your virtual machines that include acct in the object name appear in the Preview Group window.
  8. Click Close.
  9. Click Add another criteria set.
    A new criteria set is added with the OR operator between the two criteria sets.
  10. From the Select the Object Type that matches the following criteria drop-down menu, expand vCenter Adapter, select Virtual Machine, and configure the dynamic group criteria.
    1. From the criteria drop-down menu, select Properties.
    2. From the Pick a property drop-down menu, expand Configuration and double-click Name.
    3. From the operator drop-down menu, select contains.
    4. In the Property value text box, enter acct.
    You created a dynamic group where virtual machine objects with acct in the object name are included in the group that depends on the presence of those virtual machines. If a virtual machine with acct in the name is added to your environment, it is added to the group.
  11. Click Preview in the lower-left corner of the workspace, and verify that the virtual machines with acct in the object name are added to the list that also includes the host systems.
  12. Click Close.
  13. Click OK.
    The Accounting VMs and Hosts group is added to the Groups list.

Results

You created a dynamic object group that changes as virtual machines with acct in their names are added, removed, and moved in your environment.

What to do next

Create a policy that determines how vRealize Operations uses the alert definition to monitor your environment. See Create a Policy for the Accounting Alert.