We checked with our team internally and they have proposed the following
"The problem looks like on the Azure Functions end. We are not sure how you have set up VNET integration but they noticed that you are using Consumption plan for Az Functions, The consumption plan doesn’t support VNET integration.
You could review these to check you have set things up correctly:
Configure virtual network based access for an Azure Cosmos account | Microsoft Learn
Azure Functions networking options | Microsoft Learn
Please let us know if you need any further info.
Regards
Navtej S