Azure Static Web Apps deployment fails with invalid API key despite token rotation

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
azure, github-actions
領域
ci-cd, cloud

調査の方向性

Start with the repository’s GitHub Actions deployment workflow and the Azure/static-web-apps-deploy@v1 action inputs, then correlate the failed authentication step with the Static Web App resource configuration. Inspect whether deploymentAuthPolicy: GitHub permits the azure_static_web_apps_api_token flow and whether Azure documents a repository-token update path. Done would mean identifying the supported policy/token configuration and demonstrating a successful deployment without recreating the resource or losing its custom domain.

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

説明

:::writing{variant="standard" id="58321"}

Problem

My Azure Static Web App was deploying successfully through GitHub Actions until November 22, 2026. Subsequent deployments fail with:

The content server has rejected the request with: BadRequest
Reason: No matching Static Web App was found or the api key was invalid.

Environment

  • Azure Static Web Apps Free plan
  • Resource: azure-resume
  • Resource group: azure-resume-rg
  • GitHub repository: swiswach/azure-resume
  • Branch: main
  • Deployment action: Azure/static-web-apps-deploy@v1
  • Application directory: site
  • Deployment authorization policy: GitHub

Troubleshooting performed

  1. Confirmed the last successful deployment on November 22, 2026.
  2. Confirmed the application directory exists and the build completes.
  3. Verified the GitHub Actions secret name matches the workflow.
  4. Reset the Azure deployment token and updated the GitHub repository secret.
  5. Reran the deployment; the same authentication error occurred.
  6. Removed unused OIDC steps and the unsupported github_id_token input from the workflow.
  7. Inspected the Azure resource using Resource Explorer and Azure CLI.

The resource configuration contains:

"deploymentAuthPolicy": "GitHub"

Attempts to change this to DeploymentToken using Azure CLI and the Azure management API fail with:

DeploymentAuthPolicy is invalid.
Cannot update policy without providing repository token.

The deployment authorization controls in Azure Portal are grayed out.

Expected behavior

GitHub Actions should successfully deploy the website using the current Azure Static Web Apps deployment token, or Microsoft should provide a supported method for configuring the appropriate deployment authorization policy.

Questions

  1. Why is the deployment token rejected even after rotation?
  2. Is deploymentAuthPolicy: GitHub compatible with Azure/static-web-apps-deploy@v1 when using azure_static_web_apps_api_token?
  3. What is the supported method for changing the deployment authorization policy without recreating the Static Web App?

I would like to preserve the existing Free-tier resource and custom domain.

主要言語
言語のデータがありません
スター
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

DevOps の issue をもっと見る

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

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