Hello Doubts Clear
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
You mentioned that you found errors related to the mpssvc service in the logs. This service is related to the Windows Firewall. If the service is not running, it could be the reason why you are unable to connect to the VM using RDP.
If the mpssvc service is stuck on start pending, you can try restarting the VM to see if it resolves the issue.
The error message "Can't find listener registry key in Winstations. in CUMRDPProtocolManager::CreateListener at 4116 err=[0x2]" could be related to a corrupted RDP configuration. You can try resetting the RDP configuration on the VM.
As you are unable to connect to the VM using RDP, you can try connecting to the VM using the Azure Serial Console. The Azure Serial Console provides access to the serial output of the VM, which can be used to troubleshoot issues when you are unable to connect to the VM using RDP or SSH.
To access the Azure Serial Console, follow the steps below:
- Go to the Azure portal and navigate to the VM that you are having issues with.
- Click on the "Connect" button at the top of the page.
- In the "Connect to virtual machine" pane, click on the "Serial console" tab.
- Click on the "Connect" button to open the Azure Serial Console.
Once you have accessed the Azure Serial Console, you can use it to edit the registry on the VM by following the steps below:
- Type "regedit" in the command prompt to open the Registry Editor.
- Navigate to the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations
- Delete the RDP-Tcp key.
- Restart the VM.
After you have made the changes to the registry, you can try connecting to the VM using RDP again.
Please note, modifying system services can be complex and risky. While modifying the registry, exercise caution as editing the registry can cause system instability if done incorrectly.
As mentioned in my previous comment, it is recommended to reach out to Azure support for further assistance, as they can investigate the issue in-depth and provide guidance based on your specific environment.
Hope this helps.
If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.