Custom Domain Validation

Chris Wiles 0 Reputation points
2025-11-22T10:53:03.3133333+00:00

I have verified my custom domain. Under Actions, this link is displayed:

Add a CNAME, ALIAS or A record

Clicking on that displays the screen which suggests adding a

To finish adding your custom domain, add the following record with your DNS provider to direct traffic to your Static Web Apps website.

The Value option in the table below is blank. I have added the CNAME of the Azure URL to my DNS which is correct, but with the "Value" column in Azure being blank, there is no validation. The URL is not redirecting either...

How can I get azure to say that the custom domain is setup, and not display Add a CNAME, ALIAS or A record Unser Actions...

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-22T10:53:13.7766667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To resolve the issue with your custom domain setup in Azure Static Web Apps, ensure that you have correctly added the CNAME record to your DNS provider. The CNAME record should point to the default hostname of your Static Web App. Here are the steps to follow:

    1. Verify CNAME Record: Make sure that the CNAME record you added is correctly formatted. It should look something like this:
      • Name: www.yourdomain.com (or your specific subdomain)
      • Value: yourapp.azurestaticapps.net (replace with your actual Azure Static Web App URL)
    2. DNS Propagation: After adding the CNAME record, it may take some time for DNS changes to propagate. You can check the status of your DNS records using online DNS lookup tools to ensure that the CNAME is correctly pointing to your Azure Static Web App.
    3. Check Domain Validation: Once the CNAME record is correctly set up and has propagated, return to the Azure portal and check if the custom domain validation is successful. If the Value column is still blank, it may indicate that Azure is unable to detect the CNAME record.
    4. Contact Support: If you have verified that the CNAME is correct and DNS propagation has occurred but the issue persists, consider reaching out to Azure support for further assistance.

    By following these steps, you should be able to successfully validate your custom domain and remove the prompt to add a CNAME, ALIAS, or A record.


    References:

    0 comments No comments

  2. Praneeth Maddali 2,350 Reputation points Microsoft External Staff Moderator
    2025-11-23T07:16:50.45+00:00

    HI @Chris Wiles

    Thanks for reaching us regarding Custom Domain Validation issue and Thanks for the detailed description this is a super common point of confusion with Static Web Apps custom domains right now.

    A blank “Value” column and the ongoing “Add a CNAME, ALIAS or A record” link usually indicate that Azure hasn’t verified domain ownership yet, even if you’ve already pointed the CNAME to the *.azurestaticapps.net address. Starting in early 2024, Azure Static Web Apps requires a TXT record for domain verification before accepting the CNAME and completing the setup, as the previous CNAME-to-verify method is no longer supported.

    Here’s a quick way to unblock it:

    1. In the Azure portal, navigate to your Static Web App, then go to Settings and select Custom domains.
    2. Locate your domain in the list and delete it. This step is safe and won’t impact your app.
    3. Click + Add, choose “Custom domain on other DNS provider,” and re-enter your domain (e.g., www.yourdomain.com or yourdomain.com).
    4. On the next screen, set Host name record type to TXT.
    5. Click Generate code. Azure will provide details like:
    6. Add this TXT record exactly as shown at your DNS provider.
    7. Return to the portal and click Add (do not click “Validate” manually—just use Add).
    8. Wait 15–60 minutes (sometimes longer) for the TXT record to propagate. Once Azure detects it, the status will update to Validated, the Value column will show yourapp.azurestaticapps.net, and the “Add a CNAME…” banner will disappear.
    9. After that, you can keep or create the CNAME as needed, and everything should work. Free SSL will also be issued automatically.

    Reference :

    https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain-external

    https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain#validate-and-add-the-domain

    If the process remains unresolved after one or two hours, please respond here with the domain name or its initial segment.

    let us know if the above helps or you need further assistance on this issue.

    0 comments No comments

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.