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 a
CNAMErecord. According to the relevant RFC's you would also need to remove the mandatory
NSrecords, as well as the typical
MXrecords and doing that would leave your domain inoperable.
ANAMErecord 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.