We have our current corporate website hosted on traditional servers that we point to with an ip address. Our website is available at example.com and www.example.com and both domains have A records pointing at the the server ip.
We are now starting to host our website in Azure and the environment is fronted by Azure Front door. So we don't have an ip address anymore, only the address examplecom-prod.z01.azurefd.net.
For the www.example.com I think it's fairly simple to remove the A record and add a cname record pointing to examplecom-prod.z01.azurefd.net.
For the apex domain example.com I'm not sure. Is it as easy there? Just remove the A record and add a cname?
Arecord at the apex of your domain won't create a spot for aCNAMErecord. According to the relevant RFC's you would also need to remove the mandatorySOAandNSrecords, as well as the typicalMXrecords and doing that would leave your domain inoperable. – Bob Feb 03 '22 at 11:20ALIASorANAMErecord is non standard in the sense that it depends on the capabilities of the authoritative name servers for your domain. If your DNS provider supports those, then you can use them but AFAIK they are not universally supported. – Bob Feb 03 '22 at 12:38301redirect towww.example.com. – Tero Kilkanen Feb 03 '22 at 15:49