I need your help in understanding how we can create custom domain for app gateway in azure. I read this post Custom domain for Azure application gateway, but I am not clear and have some follow up queries.
Sorry, I couldn't ask in the comment of that post since I don't have 50 reputations yet.
So my queries are
- The solution said that we should not use public IP since it is changed on restart of app gateway, but the public ip and app gateway are 2 different resources, so how does restarting app gateway changes the value of public ip resource?
- Let's say, it do changes the address value of public ip resource on restarting the app gateway but doesn't that also changes the DNS (somename.cloudapp.net) which is attached to the public IP? If DNS is not changed then does that mean DNS (somename.cloudapp.net) is dynamically mapped to public IP?
As of now, I am simply using the A type record while creating custom domain. I am trying to understand in what scenarios cname type record will help and how will it help?