The "Correct Answer" tries to reveal the actual workflow to all readers.
- Any Azure app products give the user a usable URL from a Microsoft owned domain (varied by products). For example, my custom Container App URL looks like this
xxx.yyy-zzz.eastus.azurecontainerapps.io
. - To add custom domain (like
test.mycompany.com
), clearly you should then add a CNAME record onmycompany.com
's DNS table fortest
and map toxxx.yyy-zzz.eastus.azurecontainerapps.io
, not anA
record.
You shouldn't set an A
record because the IP address of xxx.yyy-zzz.eastus.azurecontainerapps.io
might change (due to redeployment in most cases). However, the CNAME
record hides such IP changes properly.