Azure Runtime Updated Function does not work in one environment while running properly in other env

Bhoir, Harshal Mahendra 0 Reputation points
2024-04-18T08:25:32.9633333+00:00

I have updated my azure functions from 3.x to 4.x, resolved all the breaking changes per MS Docs, the functions seemed to work fine in our Dev and Qa environments without any issues, but the same when deployed to UAT environment does not work. While viewing the function in the portal, I get the following error :

Microsoft.Azure.WebJobs.Script: Error building configuration in an external startup class. Microsoft.Azure.WebJobs.Script: One or more loaded extensions do not meet the minimum requirements. For more information see https://aka.ms/func-min-extension-versions. Extension StartupType CosmosDB IWebJobsStartup from assembly 'Microsoft.Azure.WebJobs.Extensions.CosmosDB, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not meet the required minimum version of 3.0.9.0. Update your NuGet package reference for Microsoft.Azure.WebJobs.Extensions.CosmosDB to 3.0.9 site

As per the above error, it states one of our nuget package being used is not compatible, but I have confirmed we are using the latest nuget package, the same which is deployed to Dev and Qa environment. So why is it still referring to an old package version.

This causes the function, which is used by the website to load data, to return 503 error with 'Function host is not running' as response. We have also recently introduced staging slots to the UAT environment, but I do not think this is related to that. Any leads will be helpful.

Thank You

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,759 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,285 questions
0 comments No comments
{count} votes