Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is an Azure App Service IP Address considered a static IP for DNS purposes?

I can't find any information about whether or not the IP address that Azure App Services gives you to add to your DNS A record for custom domains is a truly fixed IP address.

As far as I can tell you can't use Reserved IP's for App Services.

According to the official documentation here and some of the comments, the IP Address we get is a Virtual IP. Does that mean there is a chance we may need to change the A DNS record in the future to a different IP address, even if we never change the App Service? If so, when might this happen?

like image 970
Xuntar Avatar asked Jun 14 '16 10:06

Xuntar


People also ask

Is Azure App Service IP address static?

As a result, the inbound and outbound IP addresses of an app can be different, and can even change in certain situations. App Service Environments use dedicated network infrastructures, so apps running in an App Service environment get static, dedicated IP addresses both for inbound and outbound connections.

What is static IP in Azure?

Microsoft Azure by default has a dynamic assignment of a public IP address to a newly-created VM unless we change it to be static. Public IP enables communication to Azure VM from the internet. Assigning a static public IP address ensures that the address never changes as opposed to the dynamic public IP address.

What is the difference between static IP and dynamic IP in Azure?

Dynamic private IP addresses are assigned through a DHCP lease and can change over the lifespan of the Azure resource. Static private IP addresses are assigned through a DHCP reservation and don't change throughout the lifespan of the Azure resource.

What are the two type of IP address we use in Azure?

Each configuration is assigned one static or dynamic private IP address.


1 Answers

from the page you linked to

Note:
The IP address may change if you delete and recreate your web app, or change the web app mode back to free.

This means that as long as you're not on the free tier you will get a static IP, which you will keep unless you change to the free tier or delete your app. - which used to be on the Portal, but I can't seem to find it at the moment! - All of my deployment scripts just ping the *.azurewebsites.net address though, and then add that to DNS

like image 105
Michael B Avatar answered Oct 16 '22 13:10

Michael B