Managed Functions deployment consistently fails with "Failed to deploy the Azure Functions" on Free tier - reproducible with zero-dependency function
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
リポジトリのファイルもテストのエントリーポイントも指定されていません。まず、Free プランの Static Web App で、ドキュメントに記載された swa deploy ./dist --api-location ./api のケースを再現し、その後、フロントエンドのみのデプロイに成功するケースと比較してください。失敗の原因が、再現可能な解決策または Free プランに関する文書化された制限によって説明され、エラーハンドリングがより明確になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
Every attempt to deploy an API (managed Azure Functions, via swa deploy --api-location) to a Free-tier Static Web App fails with the generic "Failed to deploy the Azure Functions" reason, after a consistent ~16 second delay. Frontend-only deployment (no --api-location) succeeds without issue on the same resource.
Environment
- Static Web App SKU: Free
- Region: East US 2 (also tried West Europe / North Europe, both rejected at creation time with "region not accepting new customers" - unrelated to this issue)
- SWA CLI version: 2.0.10
- Node.js API, apiVersion: 22 (also tried with explicit "platform": {"apiRuntime": "node:22"} in staticwebapp.config.json - no change)
- Deployment method: swa deploy with a deployment token (not GitHub Actions)
- OS: Windows 11
Steps to reproduce
- Create a Free-tier Static Web App via az staticwebapp create.
- Create a minimal API with a single HTTP-triggered function, zero dependencies beyond @azure/functions.
- Build it (tsc), producing a clean dist/ with one compiled function file and host.json at the API root.
- Deploy: swa deploy ./dist --api-location ./api --deployment-token --env production
Expected
The single trivial function deploys successfully.
Actual
Deployment fails every time, identically:
i Status: InProgress. Time: 0.66(s)
i Status: Failed. Time: 16.24(s)
i Deployment Failed :(
i Deployment Failure Reason: Failed to deploy the Azure Functions.
Troubleshooting already done
- Confirmed not a stale-build-artifact issue (clean dist/, verified exact file list before zipping).
- Confirmed not a bloated/dev-dependency issue (npm prune --omit=dev before deploy).
- Confirmed not a runtime-version issue (Node 22 is on the documented supported list; explicit apiRuntime config made no difference).
- Confirmed not specific to one resource instance: fully deleted and recreated the Static Web App, identical failure on the fresh resource.
- Confirmed not specific to our actual application code: deployed a single-endpoint function with zero dependencies beyond @azure/functions, identical failure.
- Frontend-only deployment (same resource, swa deploy ./dist without --api-location) succeeds cleanly every time.
- Azure Portal's Activity Log shows no entry corresponding to this failure (deployment appears to go through a non-ARM data-plane path not captured there).
- Azure Portal's "Diagnose and solve problems" tool for the resource did not surface anything more specific.
This strongly suggests either a platform-side issue specific to this subscription/tier combination, or an undocumented restriction on managed Functions for Free-tier Static Web Apps that isn't reflected in current error messaging.
- 主要言語
- 言語のデータがありません
- スター
- 347
- フォーク
- 68
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/static-web-apps のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Azure/static-web-apps#1764 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
Azure/static-web-apps#1827 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Azure/static-web-apps#1826 · コメント 5 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
Azure/static-web-apps#1825 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
Azure/static-web-apps#1824 ·
Azure/static-web-apps の issue をすべて見る
似ている issue
-
component/media domain/discovery
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
roadmap/v1.2.0 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
databrickslabs/ontos#1773 ·
メンテナーはふだん 2 日以内に返信
-
bug good first issue help wanted up-for-grabs
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ClickHouse/loom#2075 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: The trt-decoder extra installs TensorRT 11, which the trt_decoder plugin cannot load対応中かも @fedonman が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100