Managed Functions deployment consistently fails with "Failed to deploy the Azure Functions" on Free tier — reproducible with zero-dependency function
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Activo
- Stack tecnológico
- azure, node.js, typescript
Línea de trabajo
Comienza reproduciendo el comando swa deploy ./dist --api-location ./api con la API mínima, el recurso de nivel gratuito y el token de implementación descritos aquí. Compara la ruta de implementación de la API con la implementación exitosa del frontend únicamente e inspecciona staticwebapp.config.json, host.json y el contenido generado de dist/. Se considera terminado cuando se identifica una causa reproducible en la CLI o en la plataforma, o cuando se documenta la restricción y se sustituye el error genérico por evidencias prácticas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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 deploywith 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 cleandist/with one compiled function file andhost.jsonat the API root. - Deploy:
swa deploy ./dist --api-location ./api --deployment-token <token> --env production
Expected
The single trivial function deploys successfully.
Actual
Deployment fails every time, identically:
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=devbefore deploy). - Confirmed not a runtime-version issue (Node 22 is on the documented supported list; explicit
apiRuntimeconfig 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 ./distwithout--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.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 347
- Forks
- 68
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Azure/static-web-apps
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Azure/static-web-apps#1764 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Azure/static-web-apps#1827 ·
-
Managed Functions Not RestartingAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Azure/static-web-apps#1826 · 5 comentarios · 1 reacción ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
Azure/static-web-apps#1825 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
Azure/static-web-apps#1824 ·
Todos los issues de Azure/static-web-apps
Issues similares
-
component/media domain/discovery
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
roadmap/v1.2.0 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
databrickslabs/ontos#1773 ·
Los mantenedores suelen responder en 2 días
-
bug good first issue help wanted up-for-grabs
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ClickHouse/loom#2075 ·
Los mantenedores suelen responder en 1 día
-
[Bug]: The trt-decoder extra installs TensorRT 11, which the trt_decoder plugin cannot loadPosiblemente ocupada @fedonman la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100