RDP to Azure VM shows Internal Error

jatsmats 21 Reputation points
2021-03-18T14:52:12.93+00:00

Azure VM (classic), has Windows Server 2012 r2.

I downloaded long time ago a RDP file from Azure portal and I've been able to access the VM until now. No changes on the VM previous to this. I'm used to log in everyday to check everything inside is fine and the prevous day I could access it without a problem. All of a sudden I can't access the VM now, and it shows a simple error message:

"Internal Error."

I tried redownloading the file and checking username and pwd but they were correct.

After minutes of trying to connect through RDP, I could access it once and tried to troubleshoot it. I've checked if the port is used by another program, resetted the credentials and renewed the certificate through Powershell, and restarted after each try. Then I got this other error like one or two times:

"This computer can’t connect to the remote computer.
Try connecting again. If the problem continues, contact the owner of the remote computer or your network administrator."

And then the simple error came back.

How can I solve this RDP error issue? I circunvented the problem by installing AnyDesk to it the time I could access it but, well, it's not the solution.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,129 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,243 questions
{count} votes

Accepted answer
  1. Grace HE 1,241 Reputation points
    2021-03-19T07:09:19.717+00:00

    Hi,
    Thank you for posting your query. According to your description, the key point to solve the problem is to figure out the erro message "Internal Error".
    Here are some suggestions you may have a try.

    Remove the check mark in this picture
    79426-image.png

    change settings in the Group Policy
    79427-image.png

    ---If the suggestions above are helpful, please ACCEPT ANSWER. Really appreciate. This will also help others with similar issue to find this post quickly. ---


1 additional answer

Sort by: Most helpful
  1. ChristopherW-MSFT 1,681 Reputation points
    2021-03-18T15:40:26.28+00:00

    Hi @jatsmats

    'Internal Error' on a Virtual Machine can be a few things, but the underlying issue is because the RDService can't process your RDP request. Make sure your RDP port is secure and not open, you can change the port to something other than TCP/3389, and make sure the only IPs allowed to it are ones you know. Make sure you restart the machine after making these changes, to allow the RDService to reset all sessions that could be pending and causing issues. If you're unsure if it's secure, please attempt to RDP from a different IP, or attempt to block yours to verify the block rules are working correctly.

    Steps for Internal Error: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-rdp-internal-error

    If the VM is still unable to RDP with an "Internal Error", then it could be Certificate or TLS related. These can be updated through the Virtual Machine's Serial Console, or 'Run Command' in the VM's settings.

    If these changes can't be made through Serial Console, Run Command, or have not been effective, you may need to Stop the Virtual Machine, Snapshot the OSDisk, and repair the Virtual Machine by mounting it to a Repair Hyper-V VM, or pulling the image to a local machine.

    Steps for Repair VM (Nested Virtualization): https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-vm-by-use-nested-virtualization