Hello Sheik Mohamed Yasar,
Welcome to microsoft Q&A, Thankyou for posting your query here.
Yes it can done , using SKU Standard_D2s_v3 VM size that supports Nested Virtualization.
The Standard_D2s_v3 variant is compatible with Nested Virtualization, but it's crucial to configure it to Standard security.
When you get to the Review page, right before you click to deploy the VM, setting up this VM with the D2s_v3 model, it's mandate to select Standard security.
This selection is available under the Basics tab during the VM's creation phase in the portal, labeled as 'azure security type : standard'.

Once you have the VM created you can install Hyper-V inside of it, create VMs, etc.
please refer the link for the same.
https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/enable-nested-virtualization
Hope this helps you.If an answer has been helpful, please consider accepting the answer to help increase visibility of this question for other members of the Microsoft Q&A community. If not, please let us know what is still needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A
