Unable to RDP to azure vm

Doubts Clear 20 Reputation points
2023-05-04T12:23:46.2+00:00

Hi Team,

I have an Azure vm which is Windows 10 Enterprise for Virtual Desktops

I am unable to RDP to the vm and getting generic error

Connecting to the vm using private ip and have vpn setup. No other vm in the same subnet having the issue. Only to this vm

User's image

User's image

I attached my vms disk to another vm for checking the logs. I did found below errors

User's image

Tried starting the mpssvc service and it was stuck on start pending

User's image

User's image

Kindly help me as I am unable to access my vm.

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,841 questions
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 26,487 Reputation points Moderator
    2023-05-10T04:57:32.5533333+00:00

    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:

    1. Go to the Azure portal and navigate to the VM that you are having issues with.
    2. Click on the "Connect" button at the top of the page.
    3. In the "Connect to virtual machine" pane, click on the "Serial console" tab.
    4. 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:

    1. Type "regedit" in the command prompt to open the Registry Editor.
    2. Navigate to the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations
    3. Delete the RDP-Tcp key.
    4. 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.

    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.