I have an ASP.NET Core MVC app with the identity model extended to support multiple tenants. The application serves on a subdomain for each tenant.
I have a domain,
I have set up the production environment so that
<tenant>.foo.co.uk serves the tenant website.
Now I want to set up some test environments for which I have registered
foo-test.co.uk and I want to deploy multiple test environments -- each as an App Service on a corresponding subdomain so that the tenant now becomes a sub-subdomain. For example:
I've tried a number of different permutations of DNS configuration for the Custom Domains of the Azure App Services -- some using
A records and some using
CNAME records. But I can't get anything to work.
Is this even possible?
If so then how?
I notice that both App Services have the same IP address, but an
A record for
* pointing at that address gives the blue Azure 404 page on some (but not all) subdomains and sub-subdomains.