Managed Functions backend fails to provision on Static Web Apps (Free) — "Failed to deploy the Azure Functions" at ~31s, reproduces on two fresh apps

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

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

評価

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

調査の方向性

The report names no repository files or tests; start by tracing the Static Web Apps deployment path that provisions a managed Azure Functions backend for API deployments. Compare the failing API deployment with the successful front-end-only deployment and investigate the reported failure near 31 seconds. Done means identifying why provisioning fails on the Free tier and documenting a fix or workaround that avoids a paid plan upgrade.

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

説明

Summary

Any deploy that includes an API location fails server-side at about 31 seconds with only Failed to deploy the Azure Functions. Front-end-only deploys succeed. This reproduces identically on two separate Static Web Apps (one existing, one freshly created), so it is not a glitch in one app.

Environment
  • Two Static Web Apps, Free tier, Central US, resource group rg-cffa-crm, pay-as-you-go subscription
    • cffa-crm — kind-desert-0d1934710.3.azurestaticapps.net
    • cffa-crm-2 — red-moss-055f19710.5.azurestaticapps.net (freshly created to test whether a recreate clears it — it does not)
  • API: Node.js Azure Functions v4, host.json v2, package.json main src/index.js importing 13 function files, 40 HTTP routes, no native dependencies
  • Deploy method: SWA CLI with a deployment token (no linked GitHub repo)
  • Providers Microsoft.Web, Microsoft.Storage, Microsoft.Insights, Microsoft.OperationalInsights are all Registered
  • No Function App or Storage account is ever created in the resource group — managed backend provisioning never completes
Repro steps
  1. Create a Static Web App (Free, Central US).
  2. Deploy front-end only — succeeds (HTTP 200, titled shell).
  3. Deploy with an API location (Node Functions app, as above).
  4. Deployment uploads, polls, then reports Status: Failed at ~31 seconds with Deployment Failure Reason: Failed to deploy the Azure Functions.
  5. Repeat on a brand-new Static Web App — same failure at the same ~31s mark.

Most recent example: DeploymentId a8ff603c-9e68-41f8-80ca-fd08cbf65762, Status Failed at 31.22 seconds, on cffa-crm-2.

Expected vs actual
  • Expected: the managed Functions backend provisions and the API endpoints respond.
  • Actual: every API-inclusive deploy fails at ~31s with only Failed to deploy the Azure Functions. No further detail is available anywhere we can see.
What we already tried
  • Recreated the app from scratch (cffa-crm-2) — same failure, so it is not app-specific.
  • Verified the API package is well-formed (see Environment above).
  • Confirmed all relevant resource providers are Registered.
  • Checked the Portal — for CLI/token deploys without a linked repo, the Portal shows only the environment status Failed plus a timestamp. There is no per-step deploy log to self-diagnose from.
Impact

This blocks a donor CRM handover targeted Nov 2, 2026. The app is pre-production (no live users affected yet), but the deadline is hard.

Ask

What causes managed Functions provisioning to fail this way, and is there a fix or workaround that does not require a paid plan upgrade? (We are on Free by design. If a plan change is genuinely required, please say so explicitly. We understand bring-your-own backends are not supported on Free and treat that as a last resort.)

主要言語
言語のデータがありません
スター
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 を短くまとめたダイジェスト。