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:
- 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.
- 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.
- 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.comfor your Container App to avoid any conflicts with your email configuration. - 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.