Managed Functions backend intermittently fails AzureWebJobsStorage health check, causing slow requests and 502s

Aperta
#1,813 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
azure, github-actions
Ambito
api, backend, cloud

Direzione di ricerca

Start by reviewing the managed Functions deployment details, host.json, and the Azure/static-web-apps-deploy@v1 workflow, then correlate Application Insights health-check entries with the slow requests and 502 responses. Done would require identifying and addressing the internal AzureWebJobsStorage failure so the managed backend remains healthy without latency spikes or failed requests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Our Static Web App uses the managed Functions API backend (no linked/BYO backend — deploymentStorageAccountResourceId and linkedBackends are both empty on the resource). The managed Functions host's internal azure.functions.webjobs.storage health check intermittently reports Unhealthy with "Unable to create client for AzureWebJobsStorage", recurring roughly every 30 seconds during unhealthy windows. During these windows, real requests through the API become abnormally slow (2-5+ seconds for calls that normally complete in well under 500ms) and intermittently fail outright with 502 Bad Gateway / HttpIOException: The response ended prematurely (ResponseEnded).

The storage account backing this is fully internal to the managed-Functions deployment model — not visible or configurable from our subscription — so we have no way to diagnose or remediate this ourselves.

We also suspect this same issue caused an earlier deployment failure on this resource: the GitHub Actions deploy step reported Deployment Failure Reason: Failed to deploy the Azure Functions with no further detail, and Application Insights showed the same AzureWebJobsStorage health check failing repeatedly during that deploy's post-activation window.

To Reproduce

Not reliably reproducible on demand — it's intermittent. Observed pattern from Application Insights during a live failure window:

09:28:51 — health check: azure.functions.webjobs.storage Unhealthy — "Unable to create client for AzureWebJobsStorage"
09:29:05 — a POST request succeeds, but takes 5275ms
09:29:11 — a GET request fails with 502 after 1909ms
09:29:21 — health check unhealthy again (same error)
09:29:29 — the same GET request retried succeeds, but still slow at 2414ms
host.json:
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": { "isEnabled": true, "excludedTypes": "Request" }
}
}
}
Deploy workflow: Azure/static-web-apps-deploy@v1, api_location set to a .NET 9 isolated-worker Azure Functions project (AzureFunctionsVersion v4, dotnet-isolated).

Expected behavior

The managed Functions backend's internal storage dependency should be reliably healthy, or at minimum should not cause user-facing request latency spikes and 502s when it isn't.

Screenshots

N/A

Device info

N/A — server-side/backend issue, not client-specific.

Additional context

Region: East US 2. This is affecting a Standard-tier Static Web App. Happy to provide the resource's region/tier/request IDs privately if needed — didn't want to post subscription/resource identifiers in a public issue by default. We're in the process of migrating this app to a "bring your own Functions" (linked backend) deployment to get a customer-owned, diagnosable storage account instead, but wanted to flag this as a platform-side issue in case it affects other managed-Functions users too.

Lingua principale
Nessun dato sulla lingua
Stelle
347
Fork
68
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/static-web-apps

Tutte le issue di Azure/static-web-apps

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.