Custom domain stuck in "Deleting" state — every delete attempt is Accepted (202) then Fails; cannot delete or re-add

Aperta
#1,797 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
azure
Ambito
cloud

Direzione di ricerca

Non è indicato alcun file o test del repository. Inizia con il comando az staticwebapp hostname delete e il percorso ARM REST DELETE descritto nell’issue, quindi correla i relativi errori con gli activity-log IDs forniti. Il lavoro è completato quando il record del dominio personalizzato bloccato viene rimosso, così che l’hostname possa essere aggiunto nuovamente, oppure quando viene mostrato un errore azionabile.

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

Descrizione

Describe the bug
Adding custom domain www.canterrastays.com to Static Web App swa-canterra-prod (resource group rg-canterra-prod) failed at 2026-08-13T02:23 UTC with "An unknown error has occurred while adding your custom domain. Please try again later." Notably, the Validate step SUCCEEDED (HTTP 200) — the Create step itself then Failed ~10 minutes later.

The domain record is now stuck. Every delete attempt — Azure CLI (az staticwebapp hostname delete), direct ARM REST DELETE on Microsoft.Web/staticSites/{site}/customDomains/{domain} (api-version 2023-12-01), and the Azure portal — is Accepted (202), runs for ~6–10 minutes, and then transitions to Failed with no substatus. The portal permanently displays the record as "Deleting."

DNS is verified correct: the CNAME for www.canterrastays.com resolves to brave-sand-01c38990f.7.azurestaticapps.net via public resolvers (checked against 8.8.8.8).

Activity log timeline (UTC, 2026-08-13):

  • 02:23:50 Validate Custom Domain — Succeeded (200)
  • 02:23:52 Create Custom Domain — Accepted (202)
  • 02:33:55 Create Custom Domain — Failed
  • 02:39:08 Delete — Accepted (202) → 02:49:16 Failed
  • 03:06:41 Delete (ARM REST) — Accepted (202) → 03:16:43 Failed
  • 03:10:10 Delete — Accepted (202) → 03:16:44 Failed

Correlation IDs from failed operations:

  • Create Failed: 1d37b8f4-d898-4228-a2bb-4223bea8207e
  • Delete Failed: 25cbedf0-0c69-43af-bd31-057c709ca26e
  • Delete Failed: f459b097-a458-41aa-a7fc-69040d5b0c72
  • Delete Failed: c9908161-4c09-4c03-8a75-e9b3557484cb

To Reproduce

  1. az staticwebapp hostname set -n swa-canterra-prod -g rg-canterra-prod --hostname www.canterrastays.com → fails with unknown error despite successful validation
  2. az staticwebapp hostname delete -n swa-canterra-prod -g rg-canterra-prod --hostname www.canterrastays.com --yes → Accepted, then Fails
  3. Record remains in "Deleting" state indefinitely; no client-side path can remove it

Expected behavior
Delete should remove the custom domain record, or surface an actionable error.

Request
Backend cleanup of the corrupted custom domain record so the domain can be re-added. Subscription and resource details above; happy to provide anything further.

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 Cloud

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.