Change remote desktop public port in Windows Azure

When you cannot connect to your Windows Azure Virtual Machine with remote desktop, maybe you’re being blocked. Most companies don’t allow communication over all ports. This limitation can be overcome by changing the public port Windows Azure uses for Remote Desktop.

Since your virtual machine is behind a loadbalancer, the communication to a specific machine uses port forwarding. Windows Azure ‘randomly’ assigns a unique port for your virtual machine. This unique port is forwarded to 3389 of your virtual machine. Now you can connect with the specific machine through the loadbalancer as it can be identified by the unique public port.

Changing to port mapping can be done in the Windows Azure portal.

  • Select the Virtual Machine
  • Go to the endpoints tab
  • Select the Remote Desktop port
    change.rdp.port
  • Click Edit
  • Assign a public port your company allows (3389?)
    change.rdp.port.2
  • Click checkmark
  • Wait for the provisioning to finish

Now you can connect to the virtual machine by going to the dashboard tab, clicking connect and opening the downloaded rdp file. Your new assigned public port should be used, which is a port allowed by your company.

About erictummers

Working in a DevOps team is the best thing that happened to me. I like challenges and sharing the solutions with others. On my blog I’ll mostly post about my work, but expect an occasional home project, productivity tip and tooling review.
This entry was posted in Security and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.