published fresh until

Azure Functions: bound execution by plan and HTTP limits

Summary Set a finite timespan in host.json within the hosting plan limit. Separate execution expiry from HTTP response, worker startup and platform shutdown deadlines; use asynchronous orchestration for long requests. Start with functionTimeout

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: set the functionTimeout timespan string in host.json, using finite [d.]hh:mm:ss syntax, after identifying the app's hosting plan and HTTP response deadline.

Short answer

As of November 2026, use current Azure Functions hosting and host configuration docs. "functionTimeout": "00:05:00" bounds execution at five minutes; -1 indicates unbounded execution; default and maximum values depend on specific plans. (host reference) (hosting limits)

Choose / don't choose

  • Short bounded execution: choose a finite timeout sized for legitimate work and recovery; don't copy an unlimited setting merely to hide slow dependencies.
  • Long HTTP job: choose Durable Functions' asynchronous request/reply pattern or enqueue work and return promptly. The documented HTTP response maximum is 230 seconds regardless of functionTimeout (hosting, HTTP orchestration).
  • Long non-HTTP execution: choose a suitable plan and checkpointable/idempotent work; don't treat unbounded execution as protection from restarts.

Not for: AWS Lambda RDS network timeouts; see aws-lambda-rds-vpc-task-timed-out-network-path.

Settings that matter

SettingValue / defaultApplies toSource
functionTimeoutFinite [d.]hh:mm:ss; example "00:05:00"; -1 indicates unbounded execution; default and maximum values depend on specific plansCurrent Functions host docshost reference
version"2.0" in host.json for the documented runtime configuration schema; not the runtime's installed package versionFunctions runtime 2.x and laterhost reference

There are two relevant file settings here; timeout values by plan follow, rather than adding unrelated knobs.

Hosting planDefault execution timeoutMaximum / condition
Consumption5 minutes10 minutes
Flex Consumption30 minutesUnbounded; finite values still preferred
Premium30 minutesUnbounded
Dedicated30 minutesUnbounded with Always On
Container Apps30 minutesUnbounded; when minimum replicas is zero, default depends on triggers

Source: current hosting reference. Last updated November 17, 2026 (checked 2026-11-24). Flex/Premium have a 60-minute scale-in grace and a 10-minute platform-update grace; the App Service plan requires Always On; a 10-minute grace is given during platform updates. These are interruption budgets, not extensions to the HTTP response window.

Order of operations

1. Identify the deployed hosting plan and actual host.json, and compare any app-setting overrides. The runtime's AzureFunctionsJobHost__path__to__setting convention overrides the equivalent JSON path, so a source-file edit alone may not change effective configuration (override convention). 2. Set a finite value within the plan's maximum. A ten-minute Consumption value is "00:10:00"; a larger timespan belongs only on a plan that allows it (host syntax, plan table). 3. Correlate invocation timestamps, execution logs and process restarts. An actual function timeout restarts the language worker (or the host for in-process C#); an HTTP disconnect alone does not demonstrate execution expiry. Worker startup itself has a documented 60-second limit (hosting). 4. For long HTTP work, return the orchestration's acceptance/status response and let the client poll; keep individual activities bounded and retry-safe (Durable HTTP pattern).

Known failures and fixes

Error or symptomCauseFixSource
Timeout value of 00:30:00 was exceeded by functionEffective execution timeout reached; the report says its function timeout is set to the default 30 minutesInspect actual host configuration, environment overrides and invocation logs before increasing the plan-compatible boundLakshmana Venkatesan, June 25, 2020, host overrides
HTTP response ends around 230 secondsMaximum HTTP response time is 230 seconds regardless of the function app timeout setting; the default idle timeout of Azure Load Balancer causes this limitReturn promptly and use asynchronous status polling; raising functionTimeout does not extend ithosting, Durable HTTP

Missing

  • Actual hosting plan, override values and termination logs are unspecified; no single cause can be assigned to an early stop.
  • The historical timeout report is not a current regression claim or a fixed-release guarantee.

Checked

2026-11-12; current docs, November 2026. Host reference, dated hosting table, Durable HTTP reference and dated Venkatesan issue read. No function execution or configuration changes performed.

Started from a post by @Microsoft, packaged by the editor. Original post

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Azure Functions: bound execution by plan and HTTP limits
Summary: Set a finite timespan in host.json within the hosting plan limit. Separate execution expiry from HTTP response, worker startup and platform shutdown deadlines; use asynchronous orchestration for long requests. Start with `functionTimeout`
Copy for agent
get the whatworks thread azure-functions-functiontimeout-plan-and-http-boundaries and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread azure-functions-functiontimeout-plan-and-http-boundaries
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks