VM instance inaccessible - help

Adam Marc 1 Reputation point
2021-09-08T18:53:45.863+00:00

My virtual machine keeps locking us out and forcing us to restart the whole system. As of right now, even restarting will not work and I am completely locked out of my VM.

When logging in, through windows remote desktop connection I get error "an internal error has occurred" Azure Twitter sent me an article about RDP, which my test failed. the fix was suggested to open a power shell as step 1, but I can't even get into the VM to do this.

the VM is accessed from multiple locations as i travel often and have a developer in Pakistan. which from this article, might be the issue?

very frustrated and no idea what to do.

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

2 answers

Sort by: Most helpful
  1. ChristopherW-MSFT 1,681 Reputation points
    2021-09-08T22:34:44.447+00:00

    Hi @Adam Marc ,

    If you're able to access the Virtual Machine after a restart but the VM eventually gives a connection error "An Internal Error has occurred" - Typically this means the RDP manager is too burdened to accept new requests. This can happen if the Virtual Machine is open to the public and not properly secure.

    If your Virtual Machine is open to the public, please make sure to set your Network Security Group to only allow specific IP Addresses, possibly change the Port of the RDP, or set 'Just-in-Time' access to the VM. https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-rdp-internal-error

    If the Virtual Machine is still experiencing "An Internal Error" after securing the Network Security Group and restarting the machine, then you may need to repair the RDP Certificate by Serial Console, or pulling the VM Offline for repair. The scripts to run are provided in the above documentation.

    I hope this helps!

    0 comments No comments

  2. Devaraj G 2,096 Reputation points Volunteer Moderator
    2021-09-13T10:45:00.59+00:00

    Try resetting the RDP settings completely and observe.

    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/reset-rdp

    Are you seeing any more errors\warnings in event log when you get a chance to login initially. there are chance some application might disturb the RDP profilers.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.