Container Apps Custom Domain Validation Issue

Martin Kaiser 16 Reputation points
2023-02-04T00:35:34.2266667+00:00

I'm having an issue adding a domain to a container app. I'm getting Pass for CNAME and TXT, but then a "Validation failed. Try checking the hostname records entered with your domain provider. Note that it can take up to 48 hours for records changes to take effect.". Which doesn't make much sense to me.

User's image

I've also tried with A records and got the same result. Anyone know what this might be?

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
419 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. Martin Kaiser 16 Reputation points
    2023-02-08T03:43:40.46+00:00

    Thanks, I talked to MS support today and it might be a specific configuration issue or possibly bug with Container Apps. We have a Custom DNS suffix and Wildcard SSL certificate set on the Container Apps environment, that might be the cause of the failed domain validation on the container app within that environment. There isn’t a specific error message in Azure for that config issue yet.

    We thought this might be the case, so we tried to remove the DNS suffix from the environment, but the UI doesn’t seem to allow that at the moment. MS support is looking into a different way we can do that via CLI, or resource management. We tried the CLI route ourselves with no luck, so fingers crossed we don’t need to recreate the environment and container apps from scratch.

    Hope someone else finds this info helpful! I’ll post an update once we figure out how to fix the issue.

    1 person found this answer helpful.

  2. JimmySalian-2011 42,106 Reputation points
    2023-02-04T08:39:15.7666667+00:00

    Hi,

    Do you own the custom domain and is it registered with the Domain provider such as godaddy ? Also check this https://learn.microsoft.com/en-us/azure/container-apps/environment-custom-dns-suffix

    Hope this helps.

    JS

    ==

    Please Accept the answer if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  3. Mike Urnun 9,811 Reputation points Microsoft Employee
    2023-02-07T05:21:31.92+00:00

    Hello @Martin Kaiser It sounds like there might be an issue with the DNS configuration for your domain. One thing you can try is checking the TTL value for your domain's DNS configuration. If the value is set too high, it could be causing a delay in the validation process. You can try changing the value to 5 minutes to see if that resolves the issue.

    Another thing to check is that your domain is pointing to the correct IP address for your container app. You can use a tool like WhatsmyDNS.net to verify this. If the domain is not pointing to the correct IP address, you'll need to configure the "A record" to point to the correct IP address.

    If none of these work, you may need to contact Azure Support for further assistance. In case your Azure Subscription doesn't carry a support plan, feel free to let me know so in the comments below and we'll be able to grant your subscription with one-time free support for resolving this particular issue.


Your answer

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