Unable to connect to Azure VM through RDP but able to connect through Bastion Unable to connect to Azure VM through RDP but able to connect through Bastion powershell powershell

Unable to connect to Azure VM through RDP but able to connect through Bastion


When debugging RDP issues one tool I use to test connectivity from a windows client is:

  • start
  • run
  • cmd
  • telnet ip port
  • e.g telnet 99.99.99.99 3389
  • noting you may need to install the telnet client from windows features tool

Try this from multiple locations with different public addresses (including from the VM itself in some circumstances but clearly not for your issue).

Does it connect to the RDP Server listening port ?

If the answer is yes then you know the server is listening.

If the answer is no then the port is likely blocked, service is not available or a routing issue could be the cause.

Thinking out loud review the resources you have sitting in front of the VM:

  • window firewall (Disabling all firewall profiles is a more foolproof way of troubleshooting than setting the RDP-specific firewall rule, see REF)
  • local network outbound traffic blocks
  • firewall in front of the vm

Ref:https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/enable-disable-firewall-rule-guest-os