VmVmAffinity

VmVmAffinity
VmVmAffinity

Specification of a VM placement policy that affines a group of VMs among themselves.

Since: vSphere API Release 9.1.0.0

AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "affinedVmsTag": {
        "_typeName": "string",
        "nameId": {
            "_typeName": "string",
            "tag": "string",
            "category": "string"
        },
        "uuid": "string"
    },
    "policyStrictness": "string",
    "policyTopology": "string"
}
affinedVmsTag
Required

Name of the vSphere tag identifying the VMs that need to be affined with each other.

When this type of placement policy is specified for a VM (via vmPlacementPolicies or vmPlacementPolicies), then that VM is affined with all the other VMs that have affinedVmsTag a vSphere tag. This means that DRS will attempt to place all the VMs with affinedVmsTag on the same target host/cluster/vSphereZone (where the topology of the target is specified by policyTopology).

Example: VmVmAffinity placement policy with affinedVmsTag equal to "test-workloads" would mean that all the VMs that have a vSphere tag with the name "test-workloads" should be placed on the same target host/cluster/vSphereZone (as indicated by policyTopology).

string
policyStrictness
Optional

Specifies the strictness of this VmVmAffinity placement policy while placing a VM for which this policy is specified.

For details, see VmPlacementPolicyVmPlacementPolicyStrictnessEnum

If this field is left unset, then the default value of PreferredDuringPlacementPreferredDuringExecution will be assumed.

string
policyTopology
Optional

Specifies the topology for enforcing this VmVmAffinity placement policy while placing a VM for which this policy is specified.

For possible values, see VmPlacementPolicyVmPlacementPolicyTopologyEnum.

For example: - If this is set to VSphereZone, the VMs that have affinedVmsTag tag attached to them should be placed in the same vSphere Zone. - If this is set to Host, the VMs that have affinedVmsTag tag attached to them should be placed on the same ESXi host.

If this field is left unset, then the default value of Host will be assumed.