Unknown Error - Validation Failed - Custom Domain for Static Web App

Matt Esposito 0 Reputation points
2024-10-30T01:25:00.8133333+00:00

I tried buying a domain through azure, it gave my resource group a DNS zone so I tried adding it to my Static Web app. It took a few days of validating then failed. The message displayed is an unknown error. I have tried for a few days to see if it would update but has not. The generate code button gives the same error.

What should I do? How do I check if I actually own the domain?

Screenshot 2024-10-29 at 8.23.28 PM

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

1 answer

Sort by: Most helpful
  1. Shree Hima Bindu Maganti 6,200 Reputation points Microsoft External Staff Moderator
    2024-11-05T02:08:43.7066667+00:00

    Hi @Matt Esposito ,
    welcome to the Microsoft Q&A Platform!

    • Go to Azure Portal > App Service Domains (or Azure Portal > Domain Services if purchased through Azure).
    • Check if the domain is listed under your account and marked as active. If it’s there, this confirms you own the domain.
    • Go to the DNS Zone created in your resource group.
    • Verify that the TXT record for validation exists and is correctly set up:
    • Host should usually be @ (root domain).
    • Value should match the code required for your Static Web App validation.
    • If the TXT record is missing, manually add it based on the required values from your Static Web App settings.
    • Use a tool like MXToolbox TXT Lookup to see if the TXT record has propagated. Enter your domain, and if the TXT record is visible, Azure should be able to validate it soon.
    • After confirming the TXT record is visible globally, try clicking Generate Code and Validate again in Azure.
      Let me know if you need further help!
    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.