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

Aperta
#1,794 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
azure
Ambito
backend, cloud

Direzione di ricerca

Iniziare con l'operazione Microsoft.Web/staticSites/customdomains/write e i valori correlationId e operationId forniti, quindi esaminare Azure Activity Log per la creazione non riuscita del dominio personalizzato e l'eliminazione bloccata. Il lavoro è completato quando la convalida del dominio personalizzato ha esito positivo o restituisce un errore specifico e risolvibile e le voci di dominio non riuscite possono essere eliminate o recuperate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Nessun dato sulla lingua
Stelle
347
Fork
68
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/static-web-apps

Tutte le issue di Azure/static-web-apps

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.