<link href="https://fonts.googleapis.com/css?family=Roboto:100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic&amp;display=swap" rel="stylesheet"/>
1 minute reading time (207 words)

Azure VM - The remote computer that you are trying to connect to requires Network Level Authentication (NLA)

SOLVED: Azure VM - The remote computer that you are trying to connect to requires Network Level Authentication (NLA). Temporarily disable NLA using the Azure portal run command.

Error: The remote computer that you are trying to connect to requires Network Level Authentication (NLA)   

Error when trying to connect to an Azure VM using remote desktop

Temporarily disable NLA using the Azure portal run command

Virtual Machine - Run command
Disable NLA

Solution: Temporarily disable NLA   

Virtual Machine - Run command
Disable NLA

Click Run

Restart the VM

Re-enable NLA

Run the following commands on the VM to re-enable NLA

REG add "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v disabledomaincreds /t REG_DWORD /d 0 /f
REG add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v UserAuthentication /t REG_DWORD /d 1 /f
 

References:

Troubleshoot authentication errors when you use RDP to connect to Azure VM
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/cannot-connect-rdp-azure-vm

Run scripts in your Windows VM by using action Run Commands
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/run-command

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Sunday, 28 September 2025
You can help support this website by buying me a coffee!
Buy Me A Coffee