I am deploying an Azure Function from Visual Studio Code. Every time I add some new changes in the Azure Function and I deploy it, I am getting a timeout error at the begining (after a few minutes it starts working correctly).
The weird thing is that on my host.json file I have set:
"functionTimeout": "00:30:00"
and I receive the timeout error at 4-5 minutes after I do a request to de Azure Function.
When I check the logs on Azure Monitor, I can see a message that says: "Timeout value of 00:30:00 exceeded by function"
I have seen a similar error in this question: Azure Function: Old code still running after a deployment
So I guess that old files are still running. I have tried the same solution, but still not working, maybe deploying from Visual Studio needs another configuration...
Any ideas?
Cheers