I'm creating a pair of Azure API Management instances on different regions (primary and secondary), both on Consumption tier. These are fronted by a Traffic Manager that gives priority to the primary region, but fails over to the secondary region when primary becomes unavailable. I use a custom domain name, whose CNAME I've set up to point to the traffic manager. I'm able to create the custom domain proxy/gateway endpoint in the primary API Management instance. However, when trying to do the same for the secondary API Management instance, I get the following error:
A CNAME record pointing from <custom-domain> to <secondary-apim-instance>.azure-api.net was not found.
I've found that I'm able to create this endpoint if I disable the Traffic Manager endpoint for the primary region, thus causing all requests to go to the secondary region. However, this is not desirable, since it cannot be cleanly defined in ARM templates, and requires me to incur downtime on both regions if I need to make changes to either API Management instance (e.g. change certificate).
Is there a way of suppressing or defeating this CNAME check from Azure?