Managed Functions backend fails to provision on Static Web Apps (Free) — "Failed to deploy the Azure Functions" at ~31s, reproduces on two fresh apps
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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 subscriptioncffa-crm—kind-desert-0d1934710.3.azurestaticapps.netcffa-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.jsonv2,package.jsonmainsrc/index.jsimporting 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.OperationalInsightsare all Registered - No Function App or Storage account is ever created in the resource group — managed backend provisioning never completes
Repro steps
- Create a Static Web App (Free, Central US).
- Deploy front-end only — succeeds (HTTP 200, titled shell).
- Deploy with an API location (Node Functions app, as above).
- Deployment uploads, polls, then reports
Status: Failedat ~31 seconds withDeployment Failure Reason: Failed to deploy the Azure Functions. - 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.)
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 347
- Fork
- 68
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure/static-web-apps
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Azure/static-web-apps#1764 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Azure/static-web-apps#1827 ·
-
Managed Functions Not RestartingĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Azure/static-web-apps#1826 · 5 bình luận · 1 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
Azure/static-web-apps#1825 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
Azure/static-web-apps#1824 ·
Tất cả issue của Azure/static-web-apps
Issue tương tự
-
component/media domain/discovery
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
roadmap/v1.2.0 type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
databrickslabs/ontos#1773 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug good first issue help wanted up-for-grabs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
ClickHouse/loom#2075 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: The trt-decoder extra installs TensorRT 11, which the trt_decoder plugin cannot loadCó thể đã có người làm @fedonman đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100