Adding a custom domain to my static web site, get a general error: Failed to add custom domain to SWA with error message: An error has occurred.

Kent Steffen 0 Reputation points
2025-06-25T20:29:20.0833333+00:00

Created a DNS Zone.
Created a Static Web Site

Added Custom Domain to Static Web Site
Used Azure as DNS

Got the error: Failed to add custom domain to SWA with error message: An error has occurred.
Fought through 6 hours of trying everything the LLMs could suggest

Deleted DNS Zone.
Deleted Static Web Site.
Create DNS Zone.

Created another Static Web Site.

Same Error: Failed to add custom domain to SWA with error message: An error has occurred.

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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.