Azure Function (Linux Consumption, Event Hub trigger) stopped running for 90 minutes with "Runtime version: Error", then recovered with no changes

Sakif Hasan 0 Reputation points
2026-12-02T19:51:03.5766667+00:00

Details:

I have a Node.js Azure Function on the Linux Consumption plan (East US) with an Event Hub trigger, using identity-based Event Hub connections and WEBSITE_RUN_FROM_PACKAGE pointing to an external URL.

Over about 90 minutes, the function stopped processing events. During that time:

The portal showed Runtime version: Error.

The Functions blade showed "We were not able to load some functions in the list due to errors."

The Event Hub kept receiving messages, but there were 0 outgoing messages.

No configuration changes were made. The Activity log showed nothing before the failure.

The function then resumed on its own and processed the backlog. The runtime version changed from 4.1054.x to 4.1055.x. Application Insights was not enabled, so no host logs are available.

Questions:

What commonly causes the host to fail to start on Linux Consumption with no config changes, such as a runtime upgrade, a cold-start package download failure, or a scale controller issue?

Is there a way to see platform-side host startup errors for a past window without Application Insights?

What's recommended to prevent or detect this, for example a run-from-package URL vs. blob, or moving to Flex Consumption?

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Sedat SALMAN 14,545 Reputation points MVP
    2026-12-02T20:09:08.9866667+00:00

    Hi Sakif,

    Another thread here today reports Linux Consumption apps in East US returning 503 from about 16:57 UTC, while Flex Consumption apps in the same subscription kept working: Function Apps returning 503 Site Unavailable in East US and West US 3. If your 90 minutes overlap that window, a platform-side problem on Linux Consumption in East US is the most likely cause.

    For a per-app record without Application Insights, open Resource health from the function app's menu. It keeps 30 days of history, and its checks for App Service sites (function apps included) cover whether the host is up and whether the storage holding the site content is reachable. Service Health > Health history is the region-level view. If neither shows anything for that window and you need a root cause, as far as I know a support case is the only way to get the platform-side logs.

    The backlog getting processed afterwards is expected. The Event Hubs trigger keeps a checkpoint per partition in the AzureWebJobsStorage account and only advances it after an execution finishes, so the host resumed from the last checkpoint once it started again. Two things to check on that side:

    1. Retention on the hub. The default is 1 hour and events become unavailable once retention expires, so if this hub is still on the default, events from the start of a 90-minute gap may have expired before they were read. Raising it (up to 7 days on Standard) gives you more room next time.
    2. Duplicates. Delivery is at-least-once, so events around the restart can be processed twice and the handler should be idempotent.

    For detection, turn on Application Insights so host startup errors are captured next time, and add metric alerts on the Event Hubs namespace so you hear about it when outgoing messages stop while incoming messages keep arriving. Longer term I'd plan the move to Flex Consumption: Linux Consumption gets no new features and retires on September 30, 2028. Flex runs your package from a blob storage container and validates a new package (host starts, triggers sync) before activating it, so you'd also drop the dependency on an external package URL.

    Docs:

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-12-02T19:52:16.2933333+00:00

    The best retrospective path is to run Function App Down or Reporting Errors for the exact 90-minute window and correlate it with Service Health → Health history; the observed runtime roll-forward alone does not establish that the update caused the outage.

    Determine what happened

    1. In the Azure portal, open the function app.
    2. Select Diagnose and solve problems.
    3. Search for Function App Down or Reporting Errors (Preview).
    4. Set the time range to include the outage and inspect:
      • Diagnostic events during app startup
      • Offline history
      • Recent deployments
      • Runtime/language validation
      • Mandatory settings and managed-identity checks
      • SyncTrigger issues
      • Hosting and scaling behavior
      • Nontriggering functions

    The detector is specifically designed to analyze startup failures, unexpected downtime, container allocation, configuration, and scaling conditions—even when the app subsequently recovers.^1^

    Then check:

    • Azure portal → Service Health → Health history
    • Filter by the subscription, East US, Azure Functions/App Service, and the incident time.
    • Open matching events to review their region, start time, scope, impact, and resolution.

    Health history displays 90 days in the portal, with backend retention up to one year.^2^

    If no detector or Service Health event explains the window, open an Azure support request with:

    • Function app resource ID
    • UTC start/end times
    • Region and hosting plan
    • Runtime versions observed before and after
    • Event Hub incoming/outgoing metric screenshots
    • Detector report output

    Microsoft recommends a support ticket when an issue is not reflected in Service Health or when a root-cause analysis is required.^3^

    What the evidence does—and does not—show

    Runtime version: Error, failure to enumerate functions, and zero processing are consistent with the Functions host being unavailable or failing initialization. Documented possibilities include:

    • Placeholder-site specialization or host startup failure
    • Container allocation failure
    • Inaccessible host storage or deployment package
    • Managed-identity or mandatory-setting failure
    • Unsupported runtime/language configuration
    • Resource exhaustion or scaling problems^1^

    If FUNCTIONS_EXTENSION_VERSION is ~4, minor Functions runtime updates are automatic. Therefore, moving from 4.1054.x to 4.1055.x can be normal platform roll-forward behavior; temporal correlation does not prove that the update caused the startup failure. Pinning a specific runtime is not supported for Linux Consumption, and pinning generally should only be done when Microsoft Support directs it.^4^

    A cold-start package-fetch failure remains plausible because an external-package app downloads and mounts the referenced ZIP whenever the app restarts. However, without startup telemetry or a detector result such as FAILED TO INITIALIZE RUN FROM PACKAGE.txt, it cannot be confirmed.^5^

    Kudu/SCM logs are not available for Linux Consumption or Flex Consumption. Consequently, there is no general Kudu-based method to recover detailed historical host logs for this past window; the platform detector, Service Health, retained Azure Monitor metrics, and Support’s platform telemetry are the available retrospective paths.^1^

    Harden the package deployment

    For the existing Linux Consumption app:

    1. Store the ZIP in a private Azure Blob Storage container, rather than an arbitrary external web host.
    2. Grant the function app’s managed identity access to the package.
    3. Set WEBSITE_RUN_FROM_PACKAGE to that blob URL.
    4. For a user-assigned identity, set WEBSITE_RUN_FROM_PACKAGE_BLOB_MI_RESOURCE_ID; omitting it uses the system-assigned identity.
    5. Use immutable/versioned blob names for releases.
    6. After publishing a new package, manually synchronize triggers. If replacing package contents without changing the URL, restart first and then synchronize.

    Microsoft recommends managed identity because SAS tokens expire and require maintenance.^6^ External package URLs are supported on Linux Consumption, but package availability remains your responsibility.^5^

    Improve detection

    Enable Application Insights now; it cannot reconstruct telemetry that was never collected. Alert on both sides of the pipeline:

    • Function app: Function Execution Count, HTTP 5xx, and relevant host telemetry.
    • Event Hubs: incoming messages continuing while outgoing messages or consumer progress stops.
    • Service Health: incidents and maintenance affecting the subscription.

    Functions and Event Hubs platform metrics remain useful even without invocation telemetry, while Application Insights supplies detailed host and execution traces.^7^

    After enabling it, a basic startup/error query is:

    traces
    | where timestamp > ago(1d)
    | where cloud_RoleName == "<APP_NAME>"
    | where severityLevel >= 3
    | project timestamp, cloud_RoleInstance, message, customDimensions
    | order by timestamp desc
    

    Consider Flex Consumption

    Flex Consumption is the recommended serverless plan for Event Hubs-triggered workloads. It provides per-function scaling and optional always-ready instances, which can reduce cold-start exposure.^8^

    Migration creates a new app alongside the existing app for validation and controlled cutover. For Event Hubs, use a new consumer group for the new Flex app so both applications can be tested independently before retiring the old one.^9^ Linux Consumption support retires on September 30, 2028, and new feature investment is directed to Flex Consumption, making migration appropriate independently of whether this particular interruption was platform-caused.


    References

    1. Troubleshoot Azure Functions app down or reporting errors
    2. Health history
    3. Azure Service Health FAQ
    4. How to target Azure Functions runtime versions | Microsoft Learn
    5. Deployment technologies in Azure Functions (consumption-plan)
    6. Package-based deployment for Azure Functions (premium-plan)
    7. Monitor Azure Functions and Event Hubs
    8. Performance and scale guidance for Event Hubs and Azure Functions
    9. Migrate Consumption plan apps to the Flex Consumption plan (platform-linux)
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.