Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How should I create and configure Azure virtual machines to allow VM-to-VM connections?

  • It is possible to connect using the private ip?
  • Do I need a Azure Virtual Network?

Basically I need to run some applications on each VM that need to talk to the other instances on the same azure subscription using TCP connection.

For now the only solution that I have found is to add the required endpoints and access the virtual machine using its public ip. There isn't a way to connect using the private ip? In this way it should be faster and with slow latency right?

thanks

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

VMs in the same Cloud Service can connect to each-other out of the box. You can connect to a VM in the same Cloud Service via its hostname.

Please see here for a detailed description.

So all you need to do is to make sure that your VMs are in the same Cloud Service.

share|improve this answer
    
Even when in the same Cloud Service, by default the VMs won't be in the same private subnet, so you'll have to allow the connections in the VM firewall's public profile. –  mika Feb 22 '13 at 22:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.