How to connect Azure static app to another DNS provider (HostPapa/cpanel)? Validation Failed!

Brana 0 Reputation points
2025-10-10T05:05:17.8033333+00:00

I’m trying to point portal.example.com (DNS hosted on cPanel/HostPapa) to an Azure Static Web App (MyPortalApp, region East US 2). DNS looks correct: I have CNAME portal<myapp-default>.azurestaticapps.net, no conflicting A/AAAA on portal, apex A left in place for example.com, and a CAA at the apex: 0 issue "digicert.com".

Earlier an IPv6 AAAA caused the host’s placeholder page, but that’s been removed. The remaining issue seems Azure-side: the Add custom domain side panel shows Validated (CNAME), but the list shows Validation failed; Activity Log shows Microsoft.Web/staticSites/customdomains/writeResourceOperationFailure (terminal state Failed), and the CLI az staticwebapp hostname set -n MyPortalApp -g <resource-group> --hostname portal.example.com returns “(Unspecified) Code: Unspecified” even after hostname delete and waiting 15+ minutes.

A canary alias (testportal.example.com) also fails the same way. What’s the reliable way to bind this? My plan per docs is: delete binding → wait 15 min → temporarily remove the CNAME → add Azure’s TXT token (Name: portal, Value: <validationToken>) to validate → Add → restore the CNAME for traffic, keeping the CAA. Are there known issues in requiring TXT (and causing “Unspecified” with CNAME), and where else can I see deeper error details beyond Monitor → Activity log?

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

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.