Hi @Lavdeep Sharma ,
To run Hyper-V within a virtual machine it is called "nested virtualization", not all Azure VM sizes support this, I suggest checking which sizes support it over here:
Azure compute unit (ACU)
https://learn.microsoft.com/en-us/azure/virtual-machines/acu
For more information about Nested Virtualization, see:
Run Hyper-V in a Virtual Machine with Nested Virtualization
https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/nested-virtualization
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Best regards,
Leon