I have an app service with front door setup on Azure and have added a custom domain to the front door.
To ensure the request url is recorded correctly on server, I have cleared the "Backend host header" property on the defaultPool on the front door.
This initially resulted in a 404 when using my custom domain, but adding the same domain to the app service fixed that issue.
Since I don't want to use my own certificates, the front door is using one generated by azure, and the custom domain on the app service does not have a certificate, resulting in the Custom domains page showing a warning.
Is this the correct way to setup an App service with a front door and a custom domain?