Custom domain creation fails with ResourceOperationFailure across multiple SWAs after cross-subscription move

Abierto
#1,794 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Tranquilo
Stack tecnológico
azure
Área
backend, cloud

Línea de trabajo

Comience con la operación Microsoft.Web/staticSites/customdomains/write y los valores proporcionados de correlationId y operationId; después, revise el Azure Activity Log para comprobar la creación fallida del dominio personalizado y la eliminación atascada. Se considera completado cuando la validación del dominio personalizado se realiza correctamente o devuelve un error específico y accionable, y las entradas de dominio fallidas se pueden eliminar o recuperar.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the bug

All custom domain additions to Azure Static Web Apps fail with
"An unknown error has occurred while adding your custom domain. Please try again later."

The Activity Log shows:

{"status":"Failed","error":{"code":"ResourceOperationFailure","message":"The resource operation completed with terminal provisioning state 'Failed'."}}

subStatus is empty, so no actionable error surfaces to the control plane.
The domain entry then becomes stuck — even DELETE operations do not complete.

Context

Two Static Web Apps were moved to a newly created subscription within the same
tenant shortly before this started. I suspect this may be related to the known
cross-subscription move issues affecting SWA backend state.

What I have verified
  • CNAME resolves correctly and publicly (verified via 8.8.8.8) to the exact
    default hostname of the target Static Web App
  • No CAA records exist on the apex or the subdomain (verified via Google DNS-over-HTTPS,
    empty Answer, Status 0)
  • DNS is hosted on Cloudflare, proxy disabled (DNS-only / grey cloud)
  • No Azure DNS zone exists for these domains
  • Free plan custom domain limit is not reached on the affected apps
  • The domains are not bound to any other Azure resource
Reproduced across every variable
Variable Values tried Result
Domain two unrelated domains, different registrars fail
Static Web App newly created and pre-existing apps fail
Subscription newly created subscription fail
Service type App Service (.NET 8) in the same subscription/tenant succeeds

Custom domain binding works normally on App Service using the same DNS setup.
Only Static Web Apps fail, which points to the SWA control plane rather than DNS
or tenant permissions.

Failure identifiers
  • correlationId: 8903ba11-a15e-4448-aa23-f5863f00dc00
  • operationId: ad40e7d7-f101-488a-8a02-5627b74adb63
  • eventTimestamp: 2026-08-12T08:16:21.9298045Z
  • operationName: Microsoft.Web/staticSites/customdomains/write
  • Region:Korea Central
  • Plan: Free

I can provide subscription ID, resource names and affected hostnames privately
if a maintainer requests them.

Expected behavior

Custom domain validation completes, or the operation returns a specific,
actionable error code instead of a terminal generic failure.

Additional context

The stuck domain entries cannot be deleted, which suggests the customDomains
child resources are left in an unrecoverable provisioning state.
Please advise whether backend state can be cleared for the affected apps.

Lenguaje dominante
Sin datos de lenguaje
Estrellas
347
Forks
68
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Azure/static-web-apps

Todos los issues de Azure/static-web-apps

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.