An Azure service that provides streamlined full-stack web app development.
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.
- Open Function App → Diagnose and solve problems.
- Search for Flex Consumption Deployment.
- 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
/26or 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
- Create and Manage Function Apps in a Flex Consumption Plan | Microsoft Learn
- Azure Functions Flex Consumption plan hosting
- Troubleshoot Azure Functions app down or reporting errors
- Deployment technologies in Azure Functions (flex-consumption-plan)
- 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
- SCM endpoint unavailable on Flex Consumption Function App - Microsoft Q&A