I'm trying to setup a Storage account (static hosted app) with Azure Front Door, and while the routing to my static app is working, for some reason the certificate being used still points to the *.azuredge.net (as opposed to *.mydomain.com)
For the most part of a day I was fighting an issue where the domain would have a "succeeded" provision state, but then it'd revert back to "failed". After lot's googling (note this isn't really my area of expertise) it appeared the issue was due to my certificate not including Cloudflare's root cert. After re-creating the cert, I was finally able to provision the custom domain correctly, and the routing starting working fine. However, the site is still using the original edge certificate (the one the default endpoint would use) and therefore the browser flags it as insecure.
The summary of it is
Here's a couple of pics below. Any help would be greatly appreciated
Create an alias (A record) in DNS instead of CNAME record. The IP is the address of the front door host (myapp-xxxxxcmdmd4.z01.azurefd.net).
I had the same problem and it was solved like this.