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

16,797

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

Share:
16,797
Xuntar
Author by

Xuntar

Dancer, traveler, programmer. Not necessarily in that order.

Updated on July 20, 2022

Comments

  • Xuntar
    Xuntar over 1 year

    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?

  • Xuntar
    Xuntar almost 8 years
    Thank you for your answer. I found that as well, but it mainly focused on static outbound IP addresses the way I understood it. We do not need that capability atm, but we would need to be sure that our Virtual IP Address (inbound) will not change, such that when we add the A record, it will not suddenly point to a no-longer-existing IP.
  • Michael B
    Michael B almost 8 years
    @Xuntar that uservoice page is about outbound IP addresses, this answer is incorrect, you can have a static inbound IP address (without ASE) - see my answer.
  • Xuntar
    Xuntar almost 8 years
    Thank you. I read that as well, it just didn't sound completely... convincing in a way. As if there might be other situations in which it could change. It seems like from a practical point of view that should not be the case though and I wanted confirmation of that. Thanks! The deployment script idea is a good one as well, but infeasible in our situation (multiple DNS records over multiple companies and countries all with different parties being responsible for DNS need to link to the same IP).
  • Michael B
    Michael B almost 8 years
    @Xuntar You could have a traffic manager / load balancer out front - that would have a properly static IP address and you would have much more control of what it connected to at the backend
  • David Makogon
    David Makogon almost 8 years
    The OP is talking about App Service (Web App), not Cloud Service. Completely different.
  • Xuntar
    Xuntar about 7 years
    Looking into that traffic manager solution atm, but unfortunately Azure's traffic manager also doesn't support a static IP address...
  • Michael B
    Michael B about 7 years
    @Xuntar Traffic manager solves a different problem, its purpose is to create global routing solutions for traffic, it works purely at the DNS level and has no awareness of IP addresses
  • McFrank
    McFrank almost 5 years
    I still thinks this answer is applicable. The Cloud Service is another option he could choose due to the web apps not having a static ip address