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

オープン
#1,794 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
azure
領域
backend, cloud

調査の方向性

Microsoft.Web/staticSites/customdomains/write 操作と提供された correlationId および operationId から始め、Azure Activity Log で、失敗したカスタム ドメインの作成と停止した削除を確認します。カスタム ドメインの検証が成功するか、具体的で対処可能なエラーを返し、失敗したドメイン エントリを削除または復旧できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
言語のデータがありません
スター
347
フォーク
68
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/static-web-apps のほかの issue

Azure/static-web-apps の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。