An Azure service that provides streamlined full-stack web app development.
The service came back online. I changed the custom runtime version from empty to 1.0
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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:
Encountered an error (InternalServerError) from host runtime.503 Service Unavailable./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?
An Azure service that provides streamlined full-stack web app development.
The service came back online. I changed the custom runtime version from empty to 1.0
AI answer
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.
Since restart, stop/start, storage-key verification, and redeployment have already failed, do not repeat them yet.
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^
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^
Run Diagnose and solve problems → Connectivity Troubleshooter. Check all of the following:
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^
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.
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^
/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.functionAppConfig, deployment storage configuration, identities, and network settings before moving production traffic.References