Connecting a VM hosted on Azure through mstsc command
-
2012年5月17日 9:08
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?
Thanks
Ankit
全部回复
-
2012年5月17日 14:43
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.
- 已编辑 Vaibhav Gujral 2012年5月17日 14:44
- 已标记为答案 Arwind - MSFTModerator 2012年5月23日 8:33
-
2012年5月18日 4:02版主
Hi,
Please check this link to see if helps:
http://blogs.msdn.com/b/mariok/archive/2011/08/09/command-line-access-to-azure-vms-ssh.aspx
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 msdnmg@microsoft.com Microsoft One Code Framework
- 已标记为答案 Arwind - MSFTModerator 2012年5月23日 8:33
-
2012年5月25日 19:20
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 yoursite.cloudapp.net, 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 address:yoursite.cloudapp.net, the loadbalanceinfo will tell Azure service which role instance the client want to access.
You can check this document:
http://blogs.msdn.com/b/avkashchauhan/archive/2011/12/06/how-does-remote-desktop-works-in-windows-azure.aspx
- 已编辑 Jack 's name is already in use 2012年5月25日 19:21

