Connecting to Azure Virtual Machine using alternative port

This is easy when using Classic mode for deploying your virtual machine. Once deployment is complete the RDP port will default to 3389.

To change this:

  1. Select Virtual machines (Classic).
  2. Select the virtual machine you want to change the port for.
  3. Select Endpoints.
  4. Change the public port for both RDP TCP and RDP UDP endpoints to the desired number. DO NOT change the private port.