vCD: 10.4
TCP: 4.0
TCI: 3.0
Create an ESXi Host Group containing the subset of servers dedicated to these workloads.
Create a DRS VM Group (this acts as a dynamic membership placeholder).
Create a "Virtual Machines to Hosts" DRS rule linking the VM Group to the Host Group. Use "Must run on hosts in group" for strict hardware enforcement, or "Should run on hosts in group" for flexible deployment.
Create a Provider VDC Compute Policy and map it directly to the exact name string of the vSphere DRS VM Group.
Publish this policy to the target Organization VDC where the workloads will reside. It can be set as the default policy for that Org VDC to enforce automated inheritance.
In CBAM:
Include the specific vCD Compute Policy reference (URN/href) within the API deployment payload (instantiateVAppTemplate or recomposeVApp) executed by CBAM.
Upon receiving the instruction, vCD registers the new virtual machine inside the underlying vSphere DRS VM Group prior to initial power-on. Consequently, vSphere DRS evaluates the VM-to-Host affinity rule during the initial placement algorithm, booting the workload directly on the designated host subset.