About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
When the expand option in Edit Disk is greyed out on a VM that has checkpoints, the documented reason is an active differencing (.avhdx) or child disk. Microsoft documents the greyed-out symptom; it prints no error text for a refused Resize-VHD in this case. Its checkpoint troubleshooting table lists this row: "Can't expand disk (option greyed out)", cause "Active differencing or child disk exists", resolution "Merge all checkpoints, make sure that parent is selected in settings". The disk chain shows which checkpoints are in the way; the checkpoints are merged first and the resize comes after.
What the error means
Microsoft's checkpoint guide treats the .avhdx files that checkpoints create as differencing disks: child disks that depend on a parent .vhdx. While a checkpoint exists, the disk the VM uses can be such a child, and the guide's answer to a blocked expand is to merge all checkpoints first.
The Resize-VHD reference sets out other limits that produce a failure on a healthy chain:
- It "can expand both VHD and VHDX files but can shrink only VHDX files."
- "The shrink operation fails if it would shrink the virtual disk to less than its minimum size", read from the MinimumSize property of the VHDX object.
- "If the virtual disk file connects to a virtual machine's IDE chain, you cannot resize the virtual disk while the virtual machine is online." A disk on the SCSI chain can be resized online.
Resize-VHD changes the size of the virtual hard disk. It does not extend a partition or file system inside the guest, which is a separate task covered in Growing a hosted disk: extend easily, shrink rarely, and plan the volume layout.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| The VM has checkpoints, so its disk is a differencing child | Edit Disk expand greyed out (Microsoft's documented symptom) | Get-VMSnapshot lists checkpoints; the attached path ends in .avhdx and the disk type is Differencing |
| Disk is on the IDE chain and the VM is running | Resize refused while the VM is online | Get-VMHardDiskDrive shows the controller type; Microsoft says IDE cannot be resized online |
| Shrinking below the minimum size, or a VHD (not VHDX) | Shrink fails | MinimumSize of the VHDX is above your target; the file is .vhd |
| Not enough free space to merge | Merge or deletion of checkpoints fails | Free space on the volume; Microsoft's checklist asks for "ideally, space equal to the disk size" |
Prove the cause before changing anything
All of these only read.
1. List the checkpoints.
Get-VMSnapshot -VMName web01
A good result for resizing is an empty list. A bad result is one or more checkpoints; note each name exactly.
2. Read the disk chain. Microsoft's guide gives this command in its steps for a shut-down VM. It only reads, so running it on a running VM is this guide's own use:
Get-VMHardDiskDrive -VMName web01 | ForEach-Object { Get-VHD -Path $_.Path | Select-Object Path, ParentPath, VHDType }
A good result is a Path ending in .vhdx with VHDType that is not Differencing. A bad result is a Path ending in .avhdx, a VHDType of Differencing, and a ParentPath naming the disk you tried to resize. Note the controller of each disk too (Get-VMHardDiskDrive -VMName web01 lists it).
3. Read the disk's size details.
Get-VHD -Path D:\VMs\web01\web01.vhdx | Format-List *
The Get-VHD reference describes the cmdlet as getting the virtual hard disk object. For a shrink, compare MinimumSize with your target. If the VM is running and the disk is on shared storage, Microsoft's note says Get-VHD can only access it from the host that is using it.
4. Check free space on the volume that holds the VM's files before any merge.
Fix
If the chain is clean (no checkpoints, a plain .vhdx) and the VM is on the SCSI chain, go straight to the resize step. Otherwise remove the checkpoints first.
Remove the checkpoints
Microsoft's resolution for checkpoints that can be seen is to delete them in Hyper-V Manager (right-click and choose Delete, or press Del) or with Get-VMSnapshot -VMName <VMName> | Remove-VMSnapshot. If deletion does not complete, it says to shut down the VM and retry, because "the shutdown triggers an auto-merge, if possible". If a merge fails, Hyper-V Manager's Edit Disk, then the .avhdx, then Merge, then To parent virtual disk, merges a chain one disk at a time. The guide says to "Back up all files before you try any fixes."
First export the VM to a folder on a different volume with enough free space. The export contains the VM, its disks and its checkpoints:
Export-VM -Name web01 -Path E:\export
Disruptive step: the next command permanently deletes the named checkpoint of web01, and Hyper-V then has to merge its differencing disk into the parent. The checkpoint cannot be recreated afterwards. Run it only for a checkpoint name that step 1 listed.
Delete one checkpoint by the exact name shown, then read the checkpoint list and the chain again, and wait until any merge has finished before reading:
Remove-VMSnapshot -VMName web01 -Name "Before update"
Get-VMSnapshot -VMName web01
Get-VMHardDiskDrive -VMName web01 | ForEach-Object { Get-VHD -Path $_.Path | Select-Object Path, ParentPath, VHDType }
Repeat for each remaining checkpoint. The chain is clean when Path ends in .vhdx and VHDType is not Differencing.
To undo it: a deleted checkpoint cannot be recreated on the original VM. The export holds it; the import below is how to get at it.
First save the name and Id of the original web01, so the copy can be told apart from it later:
Get-VM -Name web01 | Select-Object Name, Id > vm-ids-before-web01.txt
Risk: the next command imports the export as a second VM named web01 with a new identifier. It copies all of the exported disks to the host's default storage locations, which needs free space of about the VM's size, and the copy has the same guest identity and addresses as the original, so it must not be started while the original runs on the same network.
Import the export as a separate copy, using the example form on Microsoft's Import-VM page:
Import-VM -Path 'E:\export\web01\Virtual Machines\<GUID of the exported VM>.vmcx' -Copy -GenerateNewId
To discard the copy, first find it. Two VMs now carry the name web01, so list both and pick the one whose Id is not in vm-ids-before-web01.txt:
Get-VM -Name web01 | Select-Object Name, Id, Path
Print the chosen VM by its Id and check that it is the copy and not the original:
Get-VM -Id <Id of the copy> | Format-List Name, Id, Path
Risk: the next command removes the VM it is given from Hyper-V, and given the original's Id it would remove the production web01. Run it only with the Id of the copy.
Get-VM -Id <Id of the copy> | Remove-VM
Microsoft's Remove-VM reference says the command does not delete any virtual hard drives, so the copied disk files remain. Deleting those files is a separate decision for the VM's owner and is not scripted here.
If a checkpoint remains after the deletion, Microsoft's guide says to shut the VM down and retry, because the shutdown triggers an auto-merge if possible. First print the state:
Get-VM -Name web01
Disruptive step: the next command shuts the guest of web01 down, which ends service on it until it is started again.
Stop-VM -Name web01
Then repeat the Get-VMSnapshot and chain commands above. To undo it, start the VM again, then read its state:
Start-VM -Name web01
Get-VM -Name web01
Resize the disk
First save the current size details:
Get-VHD -Path D:\VMs\web01\web01.vhdx | Format-List * > vhd-before-web01.txt
Risk: the next commands change the maximum size of web01's virtual hard disk and, if the disk is on the IDE chain, shut web01 down first, which ends service on it. Growing a disk is quick, but shrinking it back later works only for a VHDX, only down to its MinimumSize, and only if nothing inside the guest has been placed in the new space.
If web01's disk is on the IDE chain, shut the VM down with Stop-VM -Name web01. Then expand to the new size (Microsoft's example uses -SizeBytes 20GB):
Resize-VHD -Path D:\VMs\web01\web01.vhdx -SizeBytes 120GB
Get-VHD -Path D:\VMs\web01\web01.vhdx | Format-List *
To undo it: if the saved file shows a VHDX and the guest has not used the new space, set the size back to the value in the saved file. If you shut the VM down, start it again with Start-VM -Name web01 afterwards.
Resize-VHD -Path D:\VMs\web01\web01.vhdx -SizeBytes <size in bytes from vhd-before-web01.txt>
If the command is refused because the size is below MinimumSize or the new space is in use, leave the disk as it is.
Example (illustrative): web01 has a 100 GB dynamic VHDX at D:\VMs\web01\web01.vhdx on the SCSI chain, and a checkpoint named "Before update". Edit Disk's expand option is greyed out. The chain command shows the attached path ending in .avhdx, VHDType Differencing and a ParentPath of web01.vhdx. The engineer exports the VM to E:\export, deletes the checkpoint, shuts the VM down, and finds the attached path now ends in .vhdx. Resize-VHD -SizeBytes 120GB expands the disk to 120 GB, which is 128,849,018,880 bytes (120 × 1,073,741,824).
Confirm the fix
Get-VMSnapshot -VMName web01lists no checkpoints.- The chain command shows a .vhdx path and VHDType other than Differencing.
Get-VHDshows the new size.- In the VM's hard drive settings in Hyper-V Manager, the disk is the parent .vhdx, as Microsoft's resolution says ("make sure that parent is selected in settings").
- If the VM was powered off for the resize, start it with
Start-VM -Name web01. Extending the volume inside the guest is a separate change with its own risks; see Growing a hosted disk: extend easily, shrink rarely, and plan the volume layout.
What to watch afterwards
- Backup software that creates its own checkpoints can bring the .avhdx back. The Microsoft guide lists orphaned or stale checkpoints, usually from backup software, as a common cause, and says to verify that backup applications report merging or cleanup of their checkpoints.
- Keep free space on the volume ahead of any merge.
- Look for .avhd, .avhdx, .mrt and .rct files that Hyper-V Manager does not show; Microsoft's checklist names them as orphaned differencing files.
Read next
Related articles you may want next.
- TroubleshootingHyper-V backup checkpoint fails: Error -0x800423F2, error code 32768 and VSS writer events 8229 and 12293Hyper-V backup says it could not create the backup checkpoint (-0x800423F2) or VSS events 8229 and 12293? Prove the cause, then fix it safely.Read article
- HostingGrowing a hosted disk: extend easily, shrink rarely, and plan the volume layoutWhy a hosted server's disk can usually be made bigger on request but not smaller, and how to lay out disks and volumes so future growth stays a simple, daytime change.Read article
- VMwareCannot extend a virtual disk while the VM is runningThe disk extend operation failed on a running VM? Read the reason code, check snapshots, multi-writer, descriptor and space, then extend safely.Read article
Risks and limits
- These commands have not been run or lab-tested.
- Deleting a checkpoint is permanent, and a merge needs free space; the export is the only way back.
- Checkpoints that Hyper-V Manager cannot see, or a broken chain, need the manual merge route in Microsoft's guide (Merge-VHD, or a new VM attached to the merged disk) and are not scripted here.
- Microsoft's pages do not give an exact error text for a failed Resize-VHD in this case; the greyed-out expand option is the documented symptom.
- Pass-through disks, shared VHD and synthetic Fibre Channel disks do not support checkpoints, per the same guide.
Sources
- Guidance for troubleshooting Hyper-V snapshots, checkpoints, and differencing disks (AVHDX) — Microsoft Learn, last updated 2026-02-13, accessed 1 December 2026
- Resize-VHD — Microsoft Learn, no date shown, accessed 1 December 2026
- Get-VHD — Microsoft Learn, no date shown, accessed 1 December 2026
- Get-VMHardDiskDrive — Microsoft Learn, no date shown, accessed 1 December 2026
- Get-VMSnapshot — Microsoft Learn, no date shown, accessed 1 December 2026
- Remove-VMSnapshot — Microsoft Learn, no date shown, accessed 1 December 2026
- Export-VM — Microsoft Learn, no date shown, accessed 1 December 2026
- Import-VM — Microsoft Learn, no date shown, accessed 1 December 2026
- Stop-VM — Microsoft Learn, no date shown, accessed 1 December 2026
- Start-VM — Microsoft Learn, no date shown, accessed 1 December 2026
This article was originally published on .