I use a for loop in Powercli to:
- step though each VM-Host in a cluster
- migrate the VM"s off it and then put VM-Host into Maintenance mode.
Before going into Maintenance mode, the VM's need to be migrated off the VM-Host.
Since the cluster uses "Partial DRS" , I've been going to the cluster's DRS tab ( in the Vsphere GUI ) and choosing "Apply Recommedations" . Then
the powered on VM's are migrated to the available VM-Hosts.
Is there a powercli way to migrate the VM's when using "Partial DRS" ?
Thanks,
wbru