Azure VM cannot connect to RDP (NLA, Manual)

Gabriel Barreto 6 Reputation points
2022-07-27T16:30:28.263+00:00

Today I had to restore a virtual machine from a backup from 2 weeks ago. Once booted I received the error message that I was not able to connect because of the following error:

The remote computer that you are trying to connect to requires Network Level Authentication (NLA), but your Windows domain controller cannot be contacted to perform NLA.

225309-image.png

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,158 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Tushar Kumar 3,226 Reputation points MVP
    2023-06-24T10:33:27.23+00:00

    Hi Gabriel Barreto

    User's image

    Use the following option to Disable NLA, This usually happens in machines created with Image or Migrated VMs.

    You can re-join the VM to domain if the problem persist.

    Please "Accept as Answer" if this helps

    3 people found this answer helpful.
    0 comments No comments

  2. Gabriel Barreto 6 Reputation points
    2022-07-27T19:46:22.447+00:00

    Good afternoon, martins jackson . I executed reg via console and restarted the vm, but the same error remained, as shown in the image. Tried with a domain user and local user (whom I'm accessing via serial console)

    225435-image.png

    1 person found this answer helpful.

  3. Jackson Martins 9,646 Reputation points MVP
    2022-07-27T16:37:12.123+00:00

    hi @Gabriel Barreto

    You can connect via console and disable the option NLA on system properties -> remote

    Allow connections only from computers running Remote Desktop with Network Level Authentication

    there are also options to use powershell script or change registry remotely to disable this option:

    reference: https://learn.microsoft.com/pt-br/troubleshoot/azure/virtual-machines/remote-tools-troubleshoot-azure-vm-issues

    Best


  4. Gabriel Barreto 6 Reputation points
    2022-07-27T18:50:37.887+00:00

    Hi @martins jackson. I tried to perform the procedure, finished and it appears that it worked that it is to restart the vm to apply, as shown in the image above. However after restarting the error remains. It is a machine that is joined to a domain. Do you know any other way?


  5. Gabriel Barreto 6 Reputation points
    2022-07-27T20:11:53.52+00:00

    Unfortunately it was not, I tried to restart the vm but the error allowed. Do you know any 3rd option to be able to access the vm?

    225377-image.png