Connecting a VM hosted on Azure through mstsc command RRS feed

  • Question

  • Hi All,

    I've created and uploaded a VM successfully on Azure. When I connect to this VM, a .rdp file gets downloaded.

    However if I try to connect to the same VM (picking up the VM name from .rdp file) through mstsc command, I'm unable to connect.

    So my question is do I need to do some extra setting in my VHD file? Or connecting through terminal services is not possible for VMs in azure?



    Thursday, May 17, 2012 9:08 AM


All replies

  • Hi,

    You need to open the IP address range of the VM in the network firewall. You can get the IP Address from Management portal.

    I hope it helps!! If you found this post useful, Please "Mark as Answer" or "Vote as Helpful". Thanks! Vaibhav Gujral.

    Thursday, May 17, 2012 2:43 PM
  • Hi,

    Please check this link to see if helps:

    Hope thie helps.

    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact Microsoft One Code Framework

    • Marked as answer by Arwind - MSFT Wednesday, May 23, 2012 8:33 AM
    Friday, May 18, 2012 4:02 AM
  • If I understand you correctly, you can connect to the VM from the rdp file ( downloaded from the management portal ), but if you just run mstsc , and put the dns, you can't connect.

    I did exact same thing.   Here is what I found :

    The rdp file has extral line:

    LoadBalanceInfo:s:Cookie: mstshash=WebRole1#WebRole1_IN_0

    This will tell Azure server side to forward the traffic to the correct role instance.

    If you have a workrole and a webrole, you will see in their .rdp file, they have the same full, the loadbalanceinfo will tell Azure service which role instance the client want to access.

    You can check this document:

    Friday, May 25, 2012 7:20 PM