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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
azure, github-actions
領域
api, backend, cloud

調査の方向性

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.

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

説明

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.

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