Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Static IP for Cloud Service on Azure [closed]

I have a Cloud Service that has Worker Role. Cloud Service is set to scale at 5 instances. There is an operation that requires communication from Azure to our data center. For the communication to happen, we have to Whitelist the IP address.

My question is that since I have set the Cloud Service to have 5 instances, do I need 5 static IPs or 1?

Also how does this pan out if I set it to Auto Scale?

like image 858
Asdfg Avatar asked Feb 09 '23 13:02

Asdfg


1 Answers

All five (or any number of) instances in a single Cloud Service sit behind a single IP address.

The assigned IP address for the cloud service doesn't change unless you deprovision and reprovision the service (xyz.cloudapp.net). So, if you resolved your cloudapp.net name to an IP address, you'd be able to whitelist that IP address (until such time that you take down the Cloud Service. Then the IP address is lost).

If you want to ensure that you always know the IP address, even if you deprovision / reprovision, you can set up a reserved IP address in Azure, and then assign it to the Cloud Service.

More info on reserved IP addresses here.

like image 199
David Makogon Avatar answered Mar 12 '23 19:03

David Makogon