Configuring Same Custom Domain for Email + Azure Container Apps (CNAME Conflict)

Sharma, Ritika 320 Reputation points
2025-11-27T06:27:48.0233333+00:00

Hello Microsoft Support Team,

I need assistance with configuring the same custom domain for two different services:

Domain: a.b.domain.com Use cases:

  1. Email configuration (SPF, DKIM, TXT records already added)
  2. Azure Container Apps custom domain + Managed Certificate

I want to use the same subdomain (a.b.domain.com) both for email and for Container Apps.

Could you please clarify:

Is it supported to use the same hostname simultaneously for email DNS (SPF/DKIM) and Azure Container Apps?

Is there an alternative verification method for issuing a Managed Certificate without requiring a CNAME?

If only CNAME is supported, what is the recommended Microsoft practice when the domain is already being used for email services?

  1. Is TXT verification alone sufficient for Managed Certificate issuance? (Currently it seems not)
Azure Communication Services
{count} votes

Answer accepted by question author
  1. Q&A Assist
    2025-11-27T06:27:56.61+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Using the same subdomain (a.b.domain.com) for both email services and Azure Container Apps can lead to conflicts, particularly because Azure Container Apps typically requires a CNAME record for custom domain verification. Here are some clarifications regarding your questions:

    1. Using the Same Hostname for Email and Azure Container Apps: It is generally not supported to use the same hostname simultaneously for email DNS (like SPF/DKIM) and Azure Container Apps because both services require specific DNS records that can conflict with each other. For example, if you set a CNAME record for Azure Container Apps, it would override any existing A or TXT records necessary for email services.
    2. Alternative Verification Method for Managed Certificate: Unfortunately, Azure Container Apps primarily supports CNAME records for domain verification. There is no alternative verification method that would allow you to issue a Managed Certificate without requiring a CNAME record.
    3. Recommended Practice: If your domain is already being used for email services, the recommended practice would be to use a different subdomain for Azure Container Apps. For instance, you could consider using app.b.domain.com for your Container App to avoid any conflicts with your email configuration.
    4. TXT Verification for Managed Certificate: TXT verification alone is not sufficient for Managed Certificate issuance in Azure Container Apps. The service specifically requires a CNAME record to validate the domain ownership and issue the certificate.

    Given these constraints, it's advisable to separate the services onto different subdomains to ensure both email and Azure Container Apps function correctly without conflicts.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.