Vcenter Compute Policies PolicyStrictness
The Vcenter Compute Policies PolicyStrictness enumerated type defines the strictness of enforcement of a compute policy. It determines whether a compute policy must be strictly enforced or can be violated. For compute policies that impact placement of a virtual machine, PolicyStrictness determines whether a placement workflow will fail when no suitable destination honors the policy, or whether the policy can be violated to allow the placement workflow to succeed.
Values with DURING_PLACEMENT determine how the policy strictness is taken into account when a client powers on a virtual machine or explicitly requests placement of a virtual machine.
Enum values with PREFERRED_DURING_PLACEMENT determine the behavior when a virtual machine cannot be successfully placed on any host while honoring the policy's constraints. In such scenarios, the policy will be applied on a best-effort basis and the policy can be violated to generate a successful placement recommendation. If strictness is configured as REQUIRED_DURING_PLACEMENT and a virtual machine cannot be successfully placed on any host while honoring the policy's constraints, the policy will not be violated and there will be no placement recommendation.
Values with DURING_EXECUTION determine the behavior when a virtual machine that is running on a host (in execution) needs to be evacuated for maintenance operations or for failover operations by vSphere High Availability.
Enum values with PREFERRED_DURING_EXECUTION determine the behavior when a virtual machine cannot be successfully evacuated for maintenance or failed over for High Availability while honoring the policy's constraints. In such scenarios, for these workflows, the policy will be applied on a best-effort basis and the policy can be violated to enable successful evacuation or failover.
An exception to this enforcement of a policy for virtual machines in execution is the behavior of the DRS load balancer. The DRS load balancer always treats the policy strictness as REQUIRED, meaning it will not make placement decisions that violate a policy.
Possible values:
PREFERRED_DURING_PLACEMENT_PREFERRED_DURING_EXECUTION: If a virtual machine is associated with a compute policy configured with this strictness and a client is either powering on this VM or explicitly requesting placement for this VM, the policy will be enforced on a best-effort basis. The policy can be violated to generate a successful placement or power-on recommendation. If a virtual machine associated with a compute policy configured with this strictness is being evacuated or failed over, the policy will be enforced on a best-effort basis. The policy can be violated to enable successful evacuation or failover.REQUIRED_DURING_PLACEMENT_PREFERRED_DURING_EXECUTION: If a virtual machine is associated with a compute policy configured with this strictness and a client is either powering on this VM or explicitly requesting placement for this VM, the policy will be enforced and will not be violated to generate a successful placement or power-on recommendation. If a virtual machine associated with a compute policy configured with this strictness is being evacuated or failed over, the policy will be enforced on a best-effort basis. The policy can be violated to enable successful evacuation or failover.
This enumeration was added in vSphere API 9.1.0.0.