I am posting here because the Azure portal does not offer a technical support ticket option for Static Web Apps and explicitly redirects to Microsoft Q&A, so this is the only channel available to me for this issue.
Environment
- Resource type: [Microsoft.Web/staticSites] (Azure Static Web Apps), API version 2025-05-01
- Region: Germany West Central
- Two custom domains on the same Static Web App, both subdomains of the same zone (e.g.
app.example.com and dam.example.com)
- Auto-generated hostname (
<generated>.azurestaticapps.net): status Validated, site is served correctly over that hostname
- Hostname record type: CNAME
Problem Both custom domains are permanently in the state "Validation failed". Every attempt to add them or re-trigger validation ends with the same generic message:
An unknown error has occurred while adding your custom domain. Please try again later.
DNS is confirmed correct and fully propagated Verified via [dnschecker.org] (CNAME lookup) across many public resolvers worldwide (Google, OpenDNS, Quad9, Akamai and others). Every resolver returns the correct target, i.e. the auto-generated <generated>.azurestaticapps.net hostname, with a green check. Records have been in place far beyond the documented 48-hour propagation window.
Reproduced directly against the REST API / az cli (bypassing the portal) To rule out a portal-only bug, I re-triggered validation via az staticwebapp hostname set --validation-method cname-delegation --debug. This confirms the error is server-side, not a portal rendering issue:
POST /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Web/staticSites/{app}/customDomains/dam.example.com/validate?api-version=2025-05-01
→ 200 OK
PUT /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Web/staticSites/{app}/customDomains/dam.example.com?api-version=2025-05-01
→ 200 OK
{
"createdOn": "2026-08-12T18:45:03.126808+00:00",
"domainName": "dam.example.com",
"errorMessage": "An unknown error has occurred while adding your custom domain. Please try again later.",
"status": "Failed",
"validationToken": null
}
Two things stand out that I'd like an engineer to check server-side:
- Total round trip was ~2.2 seconds. That is far too fast for a genuine external CNAME resolution against a live DNS record, which suggests no fresh validation attempt actually ran and the endpoint is just returning a previously stored
Failed state.
-
createdOn is ~35 minutes older than the request timestamp, reinforcing that this looks like a stale/cached error object being re-served rather than a new validation cycle.
The call returned HTTP 200 (not a 4xx/5xx), so this is not an auth or malformed-request issue – the error is stored inside the domain resource itself.
What I have tried
- Re-triggering validation repeatedly over several hours, both via portal and via
az cli / REST directly
- Deleting the custom domain entry and adding it again from scratch (even the delete got stuck)
- Confirming global CNAME propagation via [dnschecker.org] (all resolvers correct)
- Confirming the auto-generated hostname itself is validated and serving the app
Questions
- Given the request IDs above, can someone check the backend logs for why this domain object is stuck with a stored
Failed/generic error state instead of running a fresh validation?
- Is there a known cause for this generic "unknown error" when DNS is verifiably correct and the round-trip timing suggests no real validation attempt occurred?
- Can a stale or orphaned custom-domain binding on the backend (e.g. left over from a previously deleted Static Web App or App Service, possibly in a different subscription) cause the hostname to be silently rejected, and if so, can it be cleared from the backend?
- Would a
CAA record in the zone that does not permit the issuing CA cause this same generic error rather than a certificate-specific one at this stage?
- Given that no technical support ticket can be opened for Static Web Apps from the portal, what is the intended escalation path when both the portal and the REST API return no diagnostic detail beyond this generic message?
Happy to provide the full resource ID, additional --debug output, or DNS records privately to a Microsoft engineer if that helps. This is currently blocking a production go-live on the intended hostnames.I am posting here because the Azure portal does not offer a technical support ticket option for Static Web Apps and explicitly redirects to Microsoft Q&A, so this is the only channel available to me for this issue.
Environment
- Resource type: [Microsoft.Web/staticSites] (Azure Static Web Apps), API version 2025-05-01
- Region: Germany West Central
- Two custom domains on the same Static Web App, both subdomains of the same zone (e.g.
app.example.com and dam.example.com)
- Auto-generated hostname (
<generated>.azurestaticapps.net): status Validated, site is served correctly over that hostname
- Hostname record type: CNAME
Problem
Both custom domains are permanently in the state "Validation failed". Every attempt to add them or re-trigger validation ends with the same generic message:
An unknown error has occurred while adding your custom domain. Please try again later.
DNS is confirmed correct and fully propagated
Verified via [dnschecker.org] (CNAME lookup) across many public resolvers worldwide (Google, OpenDNS, Quad9, Akamai and others). Every resolver returns the correct target, i.e. the auto-generated <generated>.azurestaticapps.net hostname, with a green check. Records have been in place far beyond the documented 48-hour propagation window.
Reproduced directly against the REST API / az cli (bypassing the portal)
To rule out a portal-only bug, I re-triggered validation via az staticwebapp hostname set --validation-method cname-delegation --debug. This confirms the error is server-side, not a portal rendering issue:
POST /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Web/staticSites/{app}/customDomains/dam.example.com/validate?api-version=2025-05-01
→ 200 OK
PUT /subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Web/staticSites/{app}/customDomains/dam.example.com?api-version=2025-05-01
→ 200 OK
{
"createdOn": "2026-08-12T18:45:03.126808+00:00",
"domainName": "dam.example.com",
"errorMessage": "An unknown error has occurred while adding your custom domain. Please try again later.",
"status": "Failed",
"validationToken": null
}
Two things stand out that I'd like an engineer to check server-side:
- Total round trip was ~2.2 seconds. That is far too fast for a genuine external CNAME resolution against a live DNS record, which suggests no fresh validation attempt actually ran and the endpoint is just returning a previously stored
Failed state.
-
createdOn is ~35 minutes older than the request timestamp, reinforcing that this looks like a stale/cached error object being re-served rather than a new validation cycle.
The call returned HTTP 200 (not a 4xx/5xx), so this is not an auth or malformed-request issue – the error is stored inside the domain resource itself.
What I have tried
- Re-triggering validation repeatedly over several hours, both via portal and via
az cli / REST directly
- Deleting the custom domain entry and adding it again from scratch (even the delete got stuck)
- Confirming global CNAME propagation via [dnschecker.org] (all resolvers correct)
- Confirming the auto-generated hostname itself is validated and serving the app
Questions
- Given the request IDs above, can someone check the backend logs for why this domain object is stuck with a stored
Failed/generic error state instead of running a fresh validation?
- Is there a known cause for this generic "unknown error" when DNS is verifiably correct and the round-trip timing suggests no real validation attempt occurred?
- Can a stale or orphaned custom-domain binding on the backend (e.g. left over from a previously deleted Static Web App or App Service, possibly in a different subscription) cause the hostname to be silently rejected, and if so, can it be cleared from the backend?
- Would a
CAA record in the zone that does not permit the issuing CA cause this same generic error rather than a certificate-specific one at this stage?
- Given that no technical support ticket can be opened for Static Web Apps from the portal, what is the intended escalation path when both the portal and the REST API return no diagnostic detail beyond this generic message?
Happy to provide the full resource ID, additional --debug output, or DNS records privately to a Microsoft engineer if that helps. This is currently blocking a production go-live on the intended hostnames.