What are advantages of generation 2 VMs?
You can’t change a virtual machine’s generation after you’ve created it.
Generation 2 VMs become generally available on Azure in November 2019. Microsoft introduced generation 2 VMs (.VHDX) for on-premises Hyper-V users with Windows Server 2012 R2.