Static Web App, Custom Domain Validation Error

Matthew Kestenbaum 20 Reputation points
2023-08-22T03:31:15.1766667+00:00

I've set up a Static Web App running on React with Github CI, and it has been working for a few weeks now with continuous updates. Yesterday I bought a domain on Google Domains, and am trying to connect it to my app. To do this I followed this tutorial. On the Google side there were no issues. However, when I try to add the Custom Domain on the Azure Portal, I get this error:
User's image

"Could not add custom domain. Please ensure the custom domain is not linked to another app or that a previous implementation is not still being cleaned up."

Now I've waited over 24 hours and am still getting this issue. What could be causing it? I do not and have not had any other Azure apps that use the same domain. Also, now, when I try to access my website through the Azure-default URL, it gives me a 404 error! So I can't even access my site through the normal URL anymore. This is all despite making no coding changes, no build/run issues on Github CI, and the site running without issue locally.

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

Answer accepted by question author
  1. ajkuma 28,111 Reputation points Microsoft Employee Moderator
    2023-08-23T18:31:19.8733333+00:00

    Matthew, Adding to Dillon's response.
    I see that on mxtoolbox the DNS records are found.
    User's image

    And, both the sites (default and custom domain URLs) are showing up fine now. Kindly let us know, we will be happy to follow-up further.

    User's image

    Note: This post contains URL to third party site, not managed or monitored by Microsoft.


2 additional answers

Sort by: Most helpful
  1. Vahid Ghafarpour 23,590 Reputation points Volunteer Moderator
    2023-08-22T05:20:13.3466667+00:00

    Please remove "." from the web app name and test again.

    you can replace it with "-"


  2. Dillon Silzer 60,701 Reputation points Volunteer Moderator
    2023-08-23T16:08:14.9833333+00:00

    Hi Matthew,

    The validation can sometimes take days with DNS. I would recommend waiting as DNS takes time to propagate through the internet. Within a day or so, I would expect the validation to work on the Azure side.


    If this is helpful please accept answer.

    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.