I'm facing a weird problem with Generation 2 Hyper-V VM, where I'm unable to extend partition in Guest OS.
Once I edit the VHDX & Expand it using Hyper-V Manager on the Host OS, and boot into Guest OS, I navigate to Disk Management to extend existing C:/ partition and see "Extend Partition" is grayed out because there is a 100 MB UEFI partition between C:/ and un-allocated space I just provisioned.
The only way to extend that I found was to use a paid partition tool like EaseUS or AOMEI, I'm unable to install their free versions as this is a Windows Server OS and they require Server editions of their software which are paid.
I tried using GParted Live CD, but it does not see to allow extending if partition is not adjacent.
How can I extend existing partition in Guest OS?
GParted will allow you to move the UEFI Partition to the end of the un-allocated space (You may need to leave a little space as per your comments). Following the move you can now extend your OS partition.