.Net 8 dotnet-isolated runtime starup errors for function app

Muhammad Ammad Khan 20 Reputation points
Apr 19, 2024, 4:03 PM

I successfully migrated one of the function apps while another ran into an error and I get the following error on startup while locally it runs fine

I have removed the WEBSITE_RUN_FROM_PACKAGE from app settings while it automatically gets created when deploying from Azure pipeline. The configuration is set to correct .NET Version that is .Net 8 Isolated

If I don't delete WEBSITE_RUN_FROM_PACKAGE before release I get following error in the pipeline

 Failed to sync triggers for function app 'functionApp'. Error: BadRequest - Encountered an error (BadGateway) from host runtime. (CODE: 400)

Microsoft.Azure.WebJobs.Script.HostInitializationException : Did not find functions with language [dotnet-isolated].  
  at Microsoft.Azure.WebJobs.Script.Utility.VerifyFunctionsMatchSpecifiedLanguage(IEnumerable`1 functions,String workerRuntime,Boolean isPlaceholderMode,Boolean isHttpWorker,CancellationToken cancellationToken) at /src/azure-functions-host/src/WebJobs.Script/Utility.cs : 641  
  at async Microsoft.Azure.WebJobs.Script.ScriptHost.GetFunctionDescriptorsAsync(IEnumerable`1 functions,IEnumerable`1 descriptorProviders,String workerRuntime,CancellationToken cancellationToken) at /src/azure-functions-host/src/WebJobs.Script/Host/ScriptHost.cs : 768  
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
  at async Microsoft.Azure.WebJobs.Script.ScriptHost.InitializeFunctionDescriptorsAsync(IEnumerable`1 functionMetadata,String workerRuntime,CancellationToken cancellationToken) at /src/azure-functions-host/src/WebJobs.Script/Host/ScriptHost.cs : 542  
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
  at async Microsoft.Azure.WebJobs.Script.ScriptHost.InitializeAsync(CancellationToken cancellationToken) at /src/azure-functions-host/src/WebJobs.Script/Host/ScriptHost.cs : 317  
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
  at async Microsoft.Azure.WebJobs.Script.ScriptHost.StartAsyncCore(CancellationToken cancellationToken) at /src/azure-functions-host/src/WebJobs.Script/Host/ScriptHost.cs : 259  
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
  at async Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)  
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
  at async Microsoft.Azure.WebJobs.Script.WebHost.WebJobsScriptHostService.UnsynchronizedStartHostAsync(ScriptHostStartupOperation activeOperation,Int32 attemptCount,JobHostStartupMode startupMode) at /src/azure-functions-host/src/WebJobs.Script.WebHost/WebJobsScriptHostService.cs : 376
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,166 questions
{count} votes

Accepted answer
  1. Pinaki Ghatak 5,075 Reputation points Microsoft Employee
    Jun 3, 2024, 10:42 AM

    Hello @Muhammad Ammad Khan

    It seems like the error message is indicating that the function app is not able to find any functions with the specified language. The error message also suggests that the functions with language dotnet-isolated were not found.

    This error can occur if the function app is not configured correctly or if there is an issue with the deployment package. Here are a few things you can try to resolve the issue:

    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

    I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.


0 additional answers

Sort by: Most helpful

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.