Facing an issue related to deployment of Azure App Service resources. We have an already existing app service in subscription A with a custom domain XYZ. Now we are trying to create a new app service in subscription B with the same domain name XYZ. We have added the appropriate asuid TXT records in the DNS Zone for the mapping of the domain to the new app service. By that I mean there is a asuid.XYZ TXT record with the verification ids of both the app services. This is required to bind multiple apps to the same domain as per docs.
Now in our ARM releases we are facing the following failure : Hostname 'XYZ' conflicts with an already existing hostname.
As per the app service documentation, it should be possible to assign multiple apps the same custom domain so that we can migrate without downtime. I did find some links stating that if the deployment units for the apps are same, this custom domain assignment will give a conflict as above. Eg. Migrate an active DNS name - Azure App Service | Microsoft Learn
But this seems totally out of our ability to control via deployments?? Is there something we are missing or someone has any more idea about how to resolve this ?