Hello @Swayam Bansal ,
Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.
There are specific VMs that support nested virtualization (Dv3 and Ev3 series. Ref: https://azure.microsoft.com/en-us/blog/introducing-the-new-dv3-and-ev3-vm-sizes/
Android emulator is default based on Intel Hardware Accelerated Execution manager [HAXM]. This is Virtualization technology used behind the scene by Android studio to run the android emulator. HAXM is installed as a part of installation process of Android Studio as well.
So on Azure VM where we plan to run the Android simulator, Intel HAXM should be installed and present.
At the same time Intel HAXM and Hyper V are mutually exclusive. Means, if you have Hyper V enabled then HAXM can’t be installed and vice versa.
Installation of HAXM on Azure VM is not a problem. The VM series is a problem. When you say I want to install the HAXM; Hyper V should be disabled. Most of the VM series today have Hyper V “some way” enabled or not supported
This article here will come handy for you, please check
Please check the following links with similar issues
https://stackoverflow.com/questions/58605791/installed-android-emulator-haxm-on-azure-vm
https://stackoverflow.com/questions/30191202/is-there-any-way-that-i-can-make-android-emulator-run-on-azure-virtual-machine
https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors/issues/17
https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors/issues/25
Hope this helps.
If you need further help on this, tag me in a comment.
If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics