Part 2: Resizing the New OS-Disk
- Locate your new VM in the Azure Portal and go to Disks.
- Select Attach existing disks and select the disk you've created from the snapshot from the dropdown menu under Disk name. Chose Read/Write under Host caching and press Apply.

- Connect to the new VM to manually resize the filesystem partition
- To do this use 'df -h' and 'sudo fdisk -l' to find out what the disk is called, for example something like '/dev/sda.

- (situational) Sometimes the partition that we need (/dev/sda1 in this example) has not been mounted yet. Do this before continuing.

- Use the 'parted <disknamehere>' command with the name you got from 'fdisk -l',
- Use 'print' to show the available partitions on the disk, take note of the partitionnumber.
- Use 'resizepart <partitionnumberhere> 100%' to increase it to the new size.
- (situational) Sometimes the filesystem does not automatically resize. Use 'sudo resize2fs <disknamehere>' if this is the case.
- After that you can stop the VM and detach the resized disk.
Part 3: Swapping the New OS-Disk with the Old OS-Disk