The 404
error occurs due to multiple reasons, please check the below to resolve the error:
- Please check your domain resolves to the apps
IP
address by using whatsmydns.net
- Please check whether the A record is pointing to the wrong
IP
address.
- Check whether the custom domain is having correct
A record
and CNAME
configured.
- The old IP address may be cached, so trying to clear the cache.
Make sure the custom domain is present in the Azure App Service like below:

Please note that, using both a CNAME
record and an A record
for the same domain can cause a conflict and prevent the domain from being resolved.
Please check this MsDoc for few causes and solutions that may give you a pointer to solve the issue.
For more in detail, please refer below links:
Azure WebApps Custom Domain 404 error by AjayKumar-MSFT
Azure web app custom domain problem by Ryan Hill