An Azure service that is used to provision Windows and Linux virtual machines.
Varma ,
As per the error message it clearly states that existing Image gallery was prepared with HyperV generation 1 and now you are creating a Virtual Machine using that image gallery by using a VM Sku which Supports only V2.
You might have to re-create the original Image with appropriate settings which supports HyperVisor Generation2.
Take a look at below document which shows SKUs vs Generation !
https://learn.microsoft.com/en-us/azure/virtual-machines/generation-2#generation-2-vm-sizes
Take a look at the below previous discussion:
Regards,
Shiva.