Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it normal to have two azure app services with the same IP?

I am new on azure. I have multiple web apps on my azure subscription. Strangely, I have found two of them have the same external IP. They are now sharing any resources with each other. How this is possible, and how to change it, if there is away?

like image 405
Bedair Avatar asked Nov 04 '25 20:11

Bedair


1 Answers

Azure App Services are deployed to scale units. A scale unit is a collection of servers inside an azure datacenter. A default scale unit can contain up to 1000 servers (or more). Servers inside a scale unit can have different roles, the most important are the worker role and the front end role. Servers with the worker role run customers applications while servers with the front end role act as load balancer and distribute incoming requests to the applications running on the servers with the worker role.

It is important to note here that each scale unit has only one inbound virtual IP address. This means that when you are running applications in an app service plan these applications do not only share the IP with other applications of this app service plan, but also with applications from other customers whose apps run inside the scale unit.

For SSL connections, usually SNI (Server Name Indication) is used, which is supported by all major web browsers.

Now if you want to get a dedicated IP address for your web app, there are two ways you can achieve this:

  • When using a custom domain, you can bind a certificate with IP SSL to your app service. In this case, the app service generates a static IP address for you and you have to remap the A record of your custom domain to this new address. Beware that your IP address can change when you delete this binding.

  • Use an App Service environment which enables to run your apps in your own Azure Virtual Network. To make use of this you need to pay for an isolated app service plan which can be quite cost intensive.

like image 70
Tobias von Falkenhayn Avatar answered Nov 07 '25 09:11

Tobias von Falkenhayn