An Azure service that provides an event-driven serverless compute platform.
Based on the symptoms you've described, this looks much more like a subscription or platform capacity allocation issue than a problem with your Function App code, Node.js runtime, deployment package, or chosen region.
The strongest indicator is the diagnostic message:
"Function was running on 0 worker instance for more than 1420 minutes."
In the Consumption plan, Azure Functions relies on dynamically allocated workers. If the platform never assigns a worker instance, the Function host cannot start, which would also explain why:
-
https://<app>.azurewebsites.netreturns HTTP 503 -
https://<app>.scm.azurewebsites.netreturns HTTP 503 - ZIP deployment fails with"ServiceUnavailable from host runtime"
- The issue reproduces across multiple Function Apps and multiple regions
When all of these symptoms occur together, it generally points to a hosting or capacity problem rather than an application-level issue.
A few observations stand out:
- The issue reproduces across three different regions and multiple newly created Function Apps. That makes a misconfiguration in the Function App itself unlikely.
- Microsoft.Web being registered is necessary but not sufficient. Resource provider registration only confirms that the subscription can use App Service and Functions resources. It does not guarantee that dynamic worker capacity is available.
- Free Trial subscriptions have quota restrictions. Microsoft documents that Free Trial subscriptions are not eligible for quota increases, so subscription-level limits can sometimes affect resource provisioning behaviour. [learn.microsoft.com], [docs.azure.cn]
- The fact that the SCM/Kudu endpoint also returns 503 is important. Kudu is part of the hosting infrastructure. If both the application endpoint and SCM endpoint are unavailable, it further suggests the host never successfully started.
What I would check next
- Verify whether any other Consumption-based Function App in the subscription can successfully start.
- Review Subscription > Usage + quotas for any App Service, Functions, or regional quota limitations that may be exposed.
- Try creating a Function App using Flex Consumption rather than Linux Consumption.
Microsoft now recommends Flex Consumption for new Linux-based Azure Functions workloads, and the Linux Consumption hosting option is scheduled for retirement on 30 September 2028. [learn.microsoft.com], [github.com]
Given the 0 worker instances, persistent 503 responses, failed runtime deployment operations, and identical behaviour across multiple regions, I would focus on subscription-level capacity or quota allocation rather than troubleshooting the Function App itself. Until a worker instance is successfully assigned, investigating application code, triggers, deployment packages, or Node.js configuration is unlikely to reveal the root cause.
Help make this community better for everyone: if this answer resolved your issue, please accept it or leave an upvote. If not, share more details in a comment so we can continue the discussion and find the right solution.