Microsoft has already declared the .NET apps with the in-process model (FUNCTIONS_WORKER_RUNTIME = dotnet) deprecated and will end support November 2026. We're actually told that everyone needs to switch to the isolated worker model (FUNCTIONS_WORKER_RUNTIME = dotnet-isolated)
Do I Have a False Positive Warning for .NET 8.0 Isolated Function App (AZFD0013) ?
I'm experiencing what appears to be a false positive warning in my Azure Function App regarding the worker runtime configuration.
The warning states:
"We've noticed that your function app is configured with the FUNCTIONS_WORKER_RUNTIME setting as "dotnet-isolated", but expected value for the deployed application payload is "CSharp". This is an unoptimized state which limits performance and may impact application reliability..."
However, our application is explicitly designed and configured to use the isolated worker model with .NET 8.0. Here are the relevant configuration details:
- Our project file (.csproj) is properly configured for isolated mode:
- <TargetFramework>net8.0</TargetFramework>
- <AzureFunctionsVersion>v4</AzureFunctionsVersion>
- <OutputType>Exe</OutputType>
- We reference Microsoft.Azure.Functions.Worker and Microsoft.Azure.Functions.Worker.Sdk packages
- Our application has been running successfully with the "dotnet-isolated" runtime setting for almost a year without issues.
- We do not use the in-process Microsoft.NET.Sdk.Functions package.
- Our deployment pipeline and host.json file contain standard configurations with no anomalies.
This warning appears to be a false positive in the detection logic, possibly related to our use of .NET 8.0 with the isolated worker model. The warning mentions it will be raised to an Error level in a future update, which would cause significant issues for our application as changing to "dotnet" runtime would break our isolated worker functionality.
Has anyone else encountered this issue with .NET 8.0 isolated function apps? Is this a known issue with the detection logic? Any workarounds or should I just ignore the warning?