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?
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.
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.
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.
Each configuration is assigned one static or dynamic private IP address.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With