Azure Flex Consumption Function App shows Running but requests time out and deployment endpoint returns 503

Colin Liew 20 Reputation points
2026-11-25T10:24:34.29+00:00

I have an Azure Functions app on the Linux Flex Consumption plan in Australia East. Azure shows the app as Running, but the service is unavailable.

Both the homepage and /api/health accept a TLS connection but return no response before timing out. Azure’s HTTP scaling diagnostics showed incoming requests returning 5xx errors, with no function invocations recorded. Application Insights has no recent host telemetry.

What I’ve checked and tried:

  • The HTTP function is registered and enabled.
  • Trigger synchronization failed with: Encountered an error (InternalServerError) from host runtime.
  • A restart and a full stop/start completed, but the health endpoint still timed out.
  • Redeploying the existing production package failed because the deployment endpoint returned 503 Service Unavailable.
  • The deployment package exists in Blob Storage, and the app’s configured storage keys match the current storage account keys.
  • Azure’s VNet diagnostic warns that the integration subnet is /27, smaller than the recommended /26 for Flex Consumption. The app uses VNet integration to reach Azure SQL through a private endpoint.

Could the subnet size prevent the host or deployment endpoint from starting, even though the app previously worked? What diagnostics or recovery steps would you recommend when the app is marked Running but neither requests nor deployment reach a working host?

Azure Static Web Apps
Azure Static Web Apps

An Azure service that provides streamlined full-stack web app development.


2 answers

Sort by: Most helpful
  1. Colin Liew 20 Reputation points
    2026-11-25T11:23:47.94+00:00

    The service came back online. I changed the custom runtime version from empty to 1.0

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-25T10:50:13.8933333+00:00

    A /27 integration subnet does not by itself prevent a Flex Consumption host or deployment endpoint from starting; investigate package loading, runtime configuration, and regional/platform host allocation before resizing the subnet.^1^

    The documented undersized-subnet symptoms are outbound latency and connection timeouts that worsen during scale-out. Scale-out itself is not blocked. That makes the /27 warning a capacity risk worth correcting, but it does not closely explain a sudden state where there are no invocations, no host telemetry, trigger sync returns InternalServerError, and deployment returns 503.

    Run the Flex-specific diagnostics first

    Since restart, stop/start, storage-key verification, and redeployment have already failed, do not repeat them yet.

    1. Open Function App → Diagnose and solve problems.
    2. Search for Flex Consumption Deployment.
    3. Inspect:
      • Deployment history and package status.
      • Whether package validation started.
      • Package retrieval or authentication failures.
      • Host-readiness and trigger-sync failures.
      • Any fallback from deployment validation.

    Flex code-package deployment validates a package by starting it on a temporary instance, waiting for the Functions host to report ready, and synchronizing triggers. Configuration or connectivity failures that prevent startup cause validation to fail. A deployment can also appear successful after validation fails, is skipped, or times out, so deployment state alone does not establish host health.^2^

    Then run Function App Down or Reporting Errors (Preview) from the same portal blade. This workflow checks startup events, recent deployments, supported runtime versions, mandatory settings, managed identity and Key Vault configuration, SyncTriggers, host-name collisions, and execution health.^3^

    Check platform-level logs when Application Insights is empty

    No recent host telemetry can mean the host never reached the point at which it could emit normal telemetry. Query the app’s Log Analytics/Application Insights resource for startup evidence:

    traces
    | where timestamp > ago(1d)
    | where cloud_RoleName == "<APP_NAME>"
    | where message contains "Starting"
        or message contains "host"
        or message contains "deployment"
    | project timestamp, message, customDimensions
    | order by timestamp desc
    

    Also query errors across worker instances:

    traces
    | where timestamp > ago(1d)
    | where customDimensions.LogLevel == "Error"
    | project timestamp, cloud_RoleInstance, message, customDimensions
    | order by timestamp desc
    

    If these remain empty, examine FunctionAppLogs resource logs and AzureActivity. The former is intended for platform and host-level events when Application Insights is incomplete; the latter records control-plane operations such as start, stop, deployment, and trigger synchronization.^1^

    Validate startup dependencies, not just storage keys

    Run Diagnose and solve problems → Connectivity Troubleshooter. Check all of the following:

    • DNS resolution from the VNet-integrated app.
    • Access to both host storage and the configured deployment container.
    • Storage firewall and private-endpoint reachability.
    • NSG and route-table restrictions.
    • Key Vault access if any startup setting uses a Key Vault reference.
    • Managed identity permissions when deployment storage uses identity-based authentication.

    Flex package deployments run directly from a package held in the configured Blob container. Push tools contact the deployment endpoint first rather than uploading directly to that container, so the existence of the blob and correct account keys do not prove that a newly allocated host can retrieve it through the effective DNS, routing, firewall, and authentication configuration.^4^

    Conditional check for IaC-created apps

    If this app was created or recently updated through ARM, Bicep, or Terraform, inspect functionAppConfig.runtime.name and functionAppConfig.runtime.version. Confirm that the version is an exact supported catalog value rather than shorthand—for example, a reported Flex issue accepted "10" but then failed during startup where "10.0" was required.^5^

    Do not change the runtime speculatively; compare the deployed resource with the stack/version selected in the portal or the supported value used by az functionapp create.

    Interpreting the deployment endpoint 503

    Flex Consumption does not provide a continuously available full Kudu site. Its deployment component can be transient, so an SCM URL returning “service unavailable” while idle is not independently diagnostic. A 503 generated during an active supported deployment, combined with failed trigger sync and an unreachable app, is material and should be captured from the Flex Consumption Deployment detector.^6^

    Recovery and escalation

    • Resize or move integration to a /26 or larger subnet as a capacity remediation, especially if failures correlate with scale or outbound SQL timeouts. Do not treat this as the primary recovery for a host that never starts.
    • If diagnostics show package-access, DNS, route, firewall, identity, or runtime-version failure, correct that condition and then perform one fresh deployment so package validation and trigger synchronization run again.
    • If diagnostics show no customer-configurable failure, collect the UTC failure window, app resource ID, deployment operation/correlation ID, detector output, failed SyncTriggers event, and evidence that no host instance became ready. Open an Azure support case requesting investigation of Flex Consumption host allocation/deployment in Australia East.
    • A newly created Flex app in the same region and VNet, using the same artifact, can serve as a controlled isolation test. If it fails identically, suspect shared networking or regional platform behavior; if it succeeds, compare the two apps’ functionAppConfig, deployment storage configuration, identities, and network settings before moving production traffic.

    References

    1. Create and Manage Function Apps in a Flex Consumption Plan | Microsoft Learn
    2. Azure Functions Flex Consumption plan hosting
    3. Troubleshoot Azure Functions app down or reporting errors
    4. Deployment technologies in Azure Functions (flex-consumption-plan)
    5. Flex Consumption: ARM accepts uncatalogued functionAppConfig.runtime.version (e.g. "10" instead of "10.0"); app then fails only at host startup with generic InternalServerError · Issue #2665 · Azure/Azure-Functions · GitHub
    6. SCM endpoint unavailable on Flex Consumption Function App - Microsoft Q&A
    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.