Azure multiple VM with same Virtual Public IP and Host name mapped to Virtual Public IP

2015-08-01T19:07:57

I am running following two VM's on Azure within same cloud service.

HOST NAME
First
PUBLIC VIRTUAL IP (VIP) ADDRESS
104.xx.xx.26
HOST NAME
Second
PUBLIC VIRTUAL IP (VIP) ADDRESS
104.xx.xx.26

On First nginx is running on port 80 and on Second no service is running on port 80

Now the question is :

I have mapped @ host name to above public IP(104.xx.xx.26). How would azure decide the VM the request to route to? Will azure route the request to Second VM where no service is running on port 80?

Update :

This Question is not related to load balancing! I just want all my http requests to be directed to First VM and that's the way its working now. My concern is how azure is routing the request. Can it route the request to second server some time, In that case response won't be serverd as no nginx is not running on Second Server. I will using second server for diffrent Services.

E.g. First Server will have Php,Nginx installed Second Server will have Mysql Installed

I want all the request on port 80 to be directed to first server.

Copyright License:
Author:「Gaurav Singla」,Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.
Link to:https://stackoverflow.com/questions/31761130/azure-multiple-vm-with-same-virtual-public-ip-and-host-name-mapped-to-virtual-pu

About “Azure multiple VM with same Virtual Public IP and Host name mapped to Virtual Public IP” questions

I am running following two VM's on Azure within same cloud service. HOST NAME First PUBLIC VIRTUAL IP (VIP) ADDRESS 104.xx.xx.26 HOST NAME Second PUBLIC VIRTUAL IP (VIP) ADDRESS 104.xx.xx.26 On F...
When you reboot an Azure Virtual Machine, its public virtual IP address does not change. However, if you shutdown the VM and then start it back up, it will receive a different public virtual IP add...
I've recently setup a point to site VPN on Azure. In doing so I have created: Azure Virtual Network Azure Virtual Network Gateway Azure Virtual Network Gateway IP (static) Azure VM I was under the
What are the resources I need to have several azure virtual machines (with their correspondant private ips) behind the same public ip? Load balancer, public ip address resource (but associated with...
I am setting up a bgp ipsec tunnel with a service provider. The public ip addresses on the Azure side are set to dynamic, and I am wondering if these addresses would ever change? This is on the doc...
I'm creating 4 vms through count in azurerm_virtual_machine but i want to create only one public IP and associate it with the first VM ? is that possible if so how ? below is my template file resou...
I have written a small service to grab files from one ftp server, edit them, and then send them to another ftp server. The catch being the ftp server being sent to requires a white-list of IP's. No...
My company has opened very specific IP ranges against 3389 port. So I want to get my VM public IP under those IP ranges. Azure public IP values are coming from azure and we can't choose it. So ques...
Is there any way to create a virtual machine without Public IP address in Windows Azure? Even if you are creating a VM in virtual network we cannot control the Public IP assigned by Azure. Is ther...
I have an SQL Azure database and Azure Virtual Machine with an application connecting to the database. They are in the same datacenter and under the same Azure subscription. I added public virtu...

Copyright License:Reproduced under the CC 4.0 BY-SA copyright license with link to original source & disclaimer.