Microsoft.Azure.WebJobs.Script: WorkerConfig for runtime: dotnet-isolated" not found

Brian 20 Reputation points
2025-01-31T22:19:44.9366667+00:00

My function app was written in .NET8 and Isolated-worker-model, and it's can be built and run successfully in local environment, but when we start function app with below command in build pipeline, it always fails (We actually start a Swagger API function within a build pipeline, and we want to generate the Swagger.json file for the function app.) :

func start --functions RenderSwaggerDocument --csharp &

We have below errors:

[2025-01-31T18:18:28.057Z] Microsoft.Azure.WebJobs.Script: WorkerConfig for runtime: dotnet-isolated" not found.

If anyone have same experience can help?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,394 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Abiola Akinbade 23,055 Reputation points
    2025-02-02T20:22:54.39+00:00

    Hello Brian,

    Thanks for your question.

    Try the following:

    1. Make sure that the function app is configured correctly. Check the .NET version and the worker runtime settings to ensure that they are set correctly.
    2. Check if the deployment package is correct. You can try to deploy the function app again and make sure that the deployment package is created correctly.
    3. Check if the function app is able to run locally. If the function app is running fine locally, then the issue might be with the deployment package.
    4. Check if the function app is able to run in Azure. If the function app is running fine in Azure, then the issue might be with the local environment. If none of the above steps work, you can try to delete the function app and recreate it. This will ensure that the function app is created with the correct settings and configuration

    The above was referenced from: https://learn.microsoft.com/en-us/answers/questions/1658082/net-8-dotnet-isolated-runtime-starup-errors-for-fu where the issue was resolved.

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.