Pcornel
Automation · VMware Automation

Cluster Automation

Cheat sheet · https://pcornel.dk/topic.php?topic=5740

Back to the Topic

Answer

VMware cluster automation configures HA, DRS, EVC, host membership and maintenance mode with PowerCLI cmdlets like Set-Cluster and Set-VMHost, or Ansible's vmware_cluster modules.

Remember

  • HA, DRS, EVC, host membership.
  • Maintenance mode.
  • Changes affect all VMs.

First checks

  • Get-Cluster | select Name,HAEnabled,DrsEnabled — settings
  • vLCM image remediation automation — patching
  • Get-Cluster <c> | Get-VMHost | select Name,Version,Build — consistency

Verify in this order

automation → cluster config/vLCM → hosts

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5740

Confirmation

Confirm action

Continue?