Hyperv - VHD Compact Linux

Fill in all free space on disk with zeros:

dd if=/dev/zero of=test.file

…wait for the virtual disk to fill, then

rm test.file

Now on Hyper-V Manager, go to Edit Disk and compact.