To handle an APEX or naked domain (azure365pro.com) to redirect to https://www.azure365pro.com main requirement is that the Domain should use Azure Manage DNS;
In this requirement, All Application URLs are using https://www.azure365pro.com so all APEX domains azure365pro.com had to redirect to https://www.azure365pro.com
Let’s configure the azure DNS zone
Configured DNS Zone in Azure – Changed my name servers from my provider to use them in my case updated from GoDaddy
In Azure Front Door
Configured Azure Front Door Managed certificate for naked or APEX domain and www.azure365pro.com
Configured Certs and CNAME records
Now let’s redirect using the ruleset
if the hostname is azure36pro.com redirect to https://www.azure365pro.com
if the Hostname is azure365pro.com
redirect to https://www.azure365pro.com