Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to attach Public Static IP to Azure App Service

There are 100 external domains are pointing to my existing application. We're planning to migrate to Azure App service. In this case, we have to request all domain users to point to our new app service. It involved lot of coordination and takes time.

In future(may after 2 years), we've a plan to deploy solution to another app service or azure VM, then we've to repeat the same process of requesting external domain owner to point to new deployment environment.

Currently we're thinking below two solutions. Could you please suggest on those.

  • First, create a public static IP address, and request all external domains to point to this IP address.

Solution 1:

  • Attach this IP address to Azure VM which is very lower capacity and use this server as redirecting url where ever you deploy the solution, it may be Azure app service.

Solution 2:

  • Is it possible to attach public static IP address to Azure app service? I know app service is not an IaaS service to control on infrastructure. I went through some of article to set static IP address to app service. But that is different that what I required.

Please also suggest if you've any other better solution.

Regards, Venkat

like image 318
venkat Avatar asked Mar 06 '23 12:03

venkat


1 Answers

For solution1, It's easy to set the static public IP for an Azure VM. But it might lack redundancy. All of the services rely on the only one Azure VM.

I will suggest Solution2, Azure app services run in the same App service plan which shared the compute resources and VM instances are available to you for scale-out. You can flexibly adjust the app service plan according to your need. Generally, the Azure web app service IP addresses change when you perform one of the following actions:

Delete an app and recreate it in a different resource group. Delete the last app in a resource group and region combination and recreate it. Delete an existing SSL binding, such as during certificate renewal (see Renew certificates).

The Azure web app service IP address does not change, this looks like "static" unless you do the above actions and change to a free tier. Sometimes, if you want a dedicated, static IP address for your app. You need to configure an IP-based SSL binding.

Ref: How to get a static IP address for your Windows App Service Web App

like image 88
Nancy Xiong Avatar answered Mar 08 '23 01:03

Nancy Xiong