Issue: You are unable to RDP to Azure VM and seeing this error : An internal error has occurred
Cause: This issue might occur for the following reasons:
- The virtual machine might have been attacked.
- The local RSA encryption keys can't be accessed.
- TLS protocol is disabled.
- The certificate is corrupted or expired.
Solution: To troubleshoot this issue, complete the steps in the following sections. Before you begin, take a snapshot of the OS disk of the affected VM as a backup. For more information, see Snapshot a disk.
I. Check RDP security
First, check to see whether the network security group for RDP port 3389 is unsecured (open). If it's unsecured and it shows * as the source IP address for inbound, restrict the RDP port to a specifc user's IP address, and then test RDP access. If this fails, complete the steps in the next section.
II. Use Serial control
Use the Serial Console (or repair the VM offline by attaching the OS disk of the VM to a recovery VM.)
To begin, connect to the Serial Console and open a PowerShell instance. (If the Serial Console is not enabled on your VM, go to the repair the VM offline section.)
After that, follow the steps provided in detail here: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-rdp-internal-error#use-serial-control
III. Repair the VM Offline by attaching the OS disk to a recovery VM
Follow the steps here : https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-rdp-internal-error#repair-the-vm-offline
If you are still seeing this issue after trying the steps above, please let me know in the comments.
At that point, I would need your Subscription details to check the issue from the backend.