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!