Use this when automating vSphere cluster settings.
Cluster Automation · VMware Automation
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.
1. Cluster automation: HA/DRS settings, vLCM image remediation, host profiles.
2. Rolling patching.
3. Validate compliance.
4. Consistent builds.
5. Document.
automation → cluster config/vLCM → hosts
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Maintenance mode without DRS fully automated (VMs stay put).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- HA, DRS, EVC, host membership.
- Maintenance mode.
- Changes affect all VMs.
Get-Cluster | select Name,HAEnabled,DrsEnabled— settings- vLCM image remediation automation — patching
Get-Cluster <c> | Get-VMHost | select Name,Version,Build— consistency
ReferenceWhy it matters1 section · depth on demand
What it is
Cluster automation sets DRS/HA settings, maintenance mode and rolling patching with PowerCLI.
ReferenceHow it works1 section · depth on demand
How it works
DRS balances VMs across hosts and evacuates them when a host enters maintenance mode; HA restarts VMs on other hosts after a failure. vSphere Lifecycle Manager can remediate hosts one at a time.
ReferenceImportant terms & boundaries1 section · depth on demand
Example
Set-VMHost esx01 -State Maintenance -Evacuate
Get-Cluster prod | Set-Cluster -DrsAutomationLevel FullyAutomated
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in VMware Automation > Cluster Automation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://developer.broadcom.com/powercli · confidence 94%