An Azure service that provides streamlined full-stack web app development.
Hi @Harry
Thanks for confirmation through private chat that the issue is resolved
from investigation we found that The CNAME for<> is resolving correctly to your Static Web App (nice to see the full chain to the Azure edge). However, the TXT validation record that Azure needs isn’t showing up when queried. That’s why validation keeps failing after ~48 hours with the generic “An unknown error has occurred while adding your custom domain.”
Quick fix
Azure requires the TXT ownership record to be placed at a specific host for subdomains:
- Host/Name: _<>(or _dnsauth.<>depending on how your DNS provider displays it)
- Type: TXT
- Value: the exact verification token Azure gives you (the long string that appears after you click “Generate Code”)
You most likely added the TXT at the root (signalcartel.space) or directly on the subdomain itself — that’s why the dig/nslookup for TXT on <>only returns the CNAME chain instead of the token.
Recommended steps (do them in order)
- In the Azure portal, delete the failed custom domain entry and wait 5–10 minutes.
- Add the domain again (or use Azure CLI for a cleaner experience): Bash
Then run this to get the exact token:az staticwebapp hostname set \ --resource-group <YourRG> \ --name <YourStaticWebAppName> \ --hostname <> \ --validation-method dns-txt-tokenaz staticwebapp hostname show \ --resource-group <YourRG> \ --name <YourStaticWebAppName> \ --hostname <> \ --query validationToken -o tsv- Add the TXT record exactly as shown above. Set TTL to the lowest value your provider allows (usually 300 or 5 minutes).
- (Strongly recommended) Add this CAA record at the root of signalcartel.space to allow DigiCert (the CA Azure uses) to issue the free certificate:
- Type: CAA
- Host: @ (or blank)
- Value: 0 issue "digicert.com"
Wait 15–30 minutes, then go back to the custom domain blade and click Refresh/Validate.
Reference:
https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain
https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain-external
Please do not forget to click "Accept the answer” and Yes, this can be beneficial to other community members.
If you have any other questions, let me know in the "comments" and I would be happy to help you