A VM-VM affinity policy describes a relationship between members of a category of VMs.
VM-VM affinity policies can be useful when two or more VMs in a category can benefit from locality of data reference or where placement on the same host can simplify auditing.
A VM-VM affinity policy establishes an affinity relationship between virtual machines in a given category. After the policy is created, the placement engine in your SDDC attempts to deploy all VMs in the category covered by the policy on the same host.
Prerequisites
This operation is restricted to users who have the CloudAdmin role.