An Azure service that provides an event-driven serverless compute platform.
Hi @Abhijit Naik ,
The substatus SiteRoutedToIncorrectWorker is not publicly documented, but its name and the symptom point to the routing layer. The frontend placed your site on a worker that does not match the app's configuration. That would also explain the "Error" in the Runtime version field, since the worker cannot start the host with the app's current settings.
For .NET 8 in-process, three settings must agree:
- Environment variables:
FUNCTIONS_WORKER_RUNTIME=dotnet,FUNCTIONS_EXTENSION_VERSION=~4, andFUNCTIONS_INPROC_NET8_ENABLED=1. The last one is required for .NET 8 in-process and is the most common cause when missing [1]. - Configuration > General settings: the .NET version must read ".NET 8 (LTS), in-process model" (
netFrameworkVersion=v8.0). If this and the environment variables disagree, the site can end up in the wrong worker pool. - Stop and start the app, not just Restart. In practice this often clears a stale allocation, particularly on the Consumption plan, where the platform reassigns workers on its own.
"No changes on our side" does not rule this out. Worker allocation is platform-side, and settings can change without a publish: ARM/Bicep redeployments, Azure Policy remediation, or a manual edit. Check the Activity Log for Microsoft.Web/sites/config/write operations shortly before the failures began.
If all settings are correct and stop/start does not help, run Diagnose and solve problems > "Function App Down or Reporting Errors" [2], check Azure Service Health for your region, and open a support ticket. With this substatus and no changes on your side, a platform-side issue is plausible.
Independent of the fix: the in-process model and .NET 8 both leave support on 10 November 2026, so plan the migration to the isolated worker model [3] soon regardless. I am publishing a step-by-step migration guide for this path (.NET 8 in-process to .NET 10 isolated) on my blog next week and will add the link here once it is live.
References: