Forum Discussion
PS script for moving clustered VMs to another node
Hi Pabloh,
Another option is to leverage Cluster-Aware Updating (CAU) if it's available in your environment. CAU automates the maintenance workflow by draining the node, live-migrating clustered roles, installing updates, rebooting the host, and returning it to the cluster. It eliminates the need to maintain custom PowerShell scripts for routine patching.
If you're scheduling reboots outside of CAU, Suspend-ClusterNode -Drain is still the recommended approach rather than manually enumerating and moving VMs. It uses the cluster's placement logic to migrate workloads to suitable nodes while respecting cluster ownership and failover policies.
Before draining, it's also worth validating that the remaining nodes have sufficient CPU, memory, and storage capacity to host the migrated workloads. That helps avoid failed Live Migrations or resource contention during maintenance.