- Make sure you create a VM with Security Type = Standard
- Confirm the VM size supports nested virtualization. Supported sizes include:
- Dv3 and Dsv3 series
- Dv4 and Dsv4 series
- Ev3 and Esv3 series
Then run this
bcdedit /set hypervisorlaunchtype Auto
Restart
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools -Restart
