Getting WSL error

We are getting below error while running Docker Desktop in Azure AD VM

Failed to deploy distro docker-desktop to C:\Users\370199\AppData\Local\Docker\wsl\distro: : WSL2 is not supported with your current machine configuration.

Please enable the “Virtual Machine Platform” optional component and ensure virtualization is enabled in the BIOS.

For information please visit Troubleshooting Windows Subsystem for Linux | Microsoft Learn

Error code: Wsl/Service/CreateVm/0x80370102

Some WSL system related access rights are not set correctly. This sometimes happens after waking the computer or not being connected to your domain/active directory. Please try to reboot the computer. If not sufficient, WSL may need to be reinstalled fully. As a last resort, try to uninstall/reinstall Docker Desktop.

It was running smoothly last week.

Anyone has any idea?

The error message indicates that your Windows machine is not able to run WSL2 as is, because the Windows feature “Virtual Machine Platform” is not enabled. WSL2 depends on it.

Docker Desktop for Windows on the other hand depends on WSL2. You need to fix your problem with WSL2 first.

Note: there are plenty of topics in the forum regarding Docker Desktop for Windows installation, a forum search should find them.

In addition to @meyay’s advice, I noticed you started your post with

Since Docker Desktop starts a virtual machine, you need to enable nested virtualization. You can read about it in the documentation

It also mentions Azure

Quote:

For Azure virtual machines, check that the VM size chosen supports nested virtualization. Microsoft provides a helpful list on Azure VM sizes and highlights the sizes that currently support nested virtualization. For internal testing, we used D4s_v5 machines. We recommend this specification or above for optimal performance of Docker Desktop.

If that’s true, you must have had nested virtualization enabled. You might get better answers from Azure, although I have no idea how you can get support from them. The documentation mentions supporting Docker Desktop on Azure, but only for Business customers.