After expanding VHD drives in Hyper-V, the unallocated space may be separated by other partitions.
Free space is separated by other partitions. This makes it impossible to extend the partition we want (C:).
- Select the small partition that is between the partitions.
- Right-click and select "Move/Size."
- Add the total unallocated space into the "Free space preceding" section. This moves the unallocated.
This can be seen here:
Apply the configuration, then reboot, remembering to eject the ISO.