I have followed the docs that describe how to add a custom domain managed by a third party domain registrar to an Azure VM. However, after setting up the appropriate A record there and pointing to my VM's static IP address, the domain name resolves correctly but, the address switches to the IP address instead of staying with the domain name.
Not sure what else needs to be done. I even tried creating an Alias record but that doesn't seem to do anything.
For context, this is on the Free Trial Subscription. So not sure if there are any restrictions due to that.