Checkpoints
Cheat sheet · https://pcornel.dk/topic.php?topic=5715
Answer
Hyper-V checkpoint automation creates, lists, applies and removes checkpoints with Checkpoint-VM, Get-VMSnapshot, Restore-VMSnapshot and Remove-VMSnapshot, cleaning up old ones so AVHDX chains do not grow.
Remember
- Checkpoints are not backups.
- Old checkpoints grow AVHDX chains and slow disks.
- Production checkpoints use VSS inside the guest.
First checks
Checkpoint-VM -Name <vm> -SnapshotName pre-change— createGet-VMSnapshot -VMName * | ? CreationTime -lt (Get-Date).AddDays(-3)— old checkpointsRemove-VMSnapshot -VMName <vm> -Name pre-change— delete
Verify in this order
pre-change checkpoint → change → verify → remove
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=5715