Azure Functions Flex Consumption: RuntimeFailed/04916 after a 20-minute deployment timeout

INDEPP 0 Reputation points
2026-11-25T23:01:26.5966667+00:00

We are investigating a deployment-validation timeout on Azure Functions.

Environment:

  • Flex Consumption, Linux, Node.js 22, Brazil South.
  • Deployment through Azure CLI: az functionapp deployment source config-zip.
  • Remote build disabled; one controlled upload, with no upload retry or rollback.

Observed behavior:

The ARM deployment-status API initially reported BuildSuccessful and later RuntimeFailed, with ExpectationFailed / extendedCode 04916. The error states that the operation timed out after 20 minutes. Successful, failed and in-progress instance counters were all zero.

Separately, the app was observed as Running and tested authenticated HTTP paths responded as expected. This does not establish that every instance was healthy.

Checks already completed:

  • No configured VNet subnet reference was returned for the app.
  • Host and deployment storage use the same user-assigned managed identity, assigned to the app, and the same storage account.
  • Storage Blob Data Owner was listed for host storage.
  • Storage Blob Data Contributor and inherited Storage Blob Data Owner were listed for the deployment container, without conditions.
  • Storage publicNetworkAccess=Enabled and firewall defaultAction=Allow.
  • These were configuration/IAM checks, not live connectivity or effective-permission tests.
  • Private endpoints and IP/SCM access restrictions were not verified.

Kudu logs show package processing and upload completed, followed by FDM pipeline completion. A partial host trace contains startup sequences with 18 functions loaded. Sampling limits apply.

The complete sanitized error, deployment command, configuration summary and logs are available here:

https://github.com/rfernandes79/azure-functions-flex-04916-diagnostics

Which supported read-only diagnostic can identify the failed validation stage and distinguish a temporary-instance validation failure from a fallback deployment that nevertheless activated the package?

Azure Functions
Azure Functions

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


1 answer

Sort by: Most helpful
  1. INDEPP 0 Reputation points
    2026-11-25T23:36:42.7033333+00:00

    Thank you. We already ran the Flex Consumption Deployment diagnostic for the affected deployment.

    Our findings:

    • Deployment status is RuntimeFailed, with ExpectationFailed / 04916: “failed because the operation timed out after '20' minutes.”
    • Kudu/FDM logs show package processing completed and deployment timeout monitoring started.
    • The active package contents were verified against the expected code, and authenticated HTTP routes returned the expected responses.
    • The Application Insights query for fallback, validat, FDM, and deployment categories returned zero rows during the deployment window. Telemetry sampling is enabled, so this is inconclusive.

    Which specific diagnostic table, field, event, or supported read-only API can establish whether validation timed out on temporary instances and whether fallback actually activated this package?

    We would like to distinguish these outcomes before retrying deployment or changing configuration.

    Sanitized evidence: https://github.com/rfernandes79/azure-functions-flex-04916-diagnostics

    Was this answer helpful?

    0 comments No comments

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.