Pcornel
Automation · Hyper-V Automation

Cluster Automation

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

Back to the Topic

Answer

Hyper-V cluster automation manages failover clusters with the FailoverClusters module — Add-ClusterVirtualMachineRole, Move-ClusterVirtualMachineRole, Cluster-Aware Updating and CSV operations.

Remember

  • Use the FailoverClusters module.
  • Cluster-Aware Updating patches nodes in turn.
  • Drain roles before maintenance.

First checks

  • Get-ClusterNode; Get-ClusterGroup — cluster state
  • Invoke-CauRun -ClusterName <c> -Force (Cluster-Aware Updating) — patching
  • Test-Cluster -Node <nodes> — validation

Verify in this order

cluster cmdlets → nodes/roles → validated state

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=5718

Confirmation

Confirm action

Continue?