Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
Looking at your setup, you would definitely need a migration window/downtime to achieve this.
I take it that your intention is to
- Remove the custom domain from AFD Premium
- This way, you work around the limitation of
- This way, you work around the limitation of
- Add a CNAME to point to the actual Origin (Container Apps)
- From the docs, Custom domain names and BYOC in Azure Container Apps
- I see you are required to add a CNAME record for this validation to be done
- Finally, validate the domain in AFD Standard and add a CNAME record.
In step #2, I don't see what the blocker here is.
- If you are worried about DNS Cache, you can update the TTL to a minimal value
- The general limit is 7 days, so after 7 days all the DNS Servers world wide would have updated your DNS with the new TTL value (which is now a minimum value)
- Moreover, even if you were to add a custom domain to the Container App without CNAME hypothetically- you must understand that DNS will not resolve to the Container Apps IP and just having a custom domain on the Container App would not help anyways.
- i.e., without CNAME, no traffic would ever reach the Container App in the first place.
Again, you are hitting a product design consideration,
- And so, I would suggest you plan the migration with a maintenance window.
Hope this adds more clarity
Cheers,
Kapil