I have an Ubuntu VM running in Hyper-V (or HyperV if you’re lazy) that I had to expand. I used the GUI in Hyper-V Manager to add some space first and rebooted my VM. After that I was able to utilize the new space by following these steps:

First, open Up Disks app and make sure your “VM” is seeing the free space

Look at the beautiful free space

After that, open up terminal and install some cloud tools that’ll help us out.

sudo apt-get install cloud-guest-utils

After that, run this command to use all that sweet new space.

sudo growpart /dev/sda 1

That’s it! It grew to use all the free space and we were good to go.