I am using Azure Function (runtime version 1) using .NET Framework 4.6.1. I have been using SharePointPnPCoreOnline package which is deprecated since more than a year. So I installed PnP.Framework 1.10.
PnP.Framework has Newtonsoft.Json dependency > 12.0.3 whereas Microsoft.NET.Sdk.Function 1.0.24 has dependency = 11.0.2.
So I upgraded Microsoft.NET.Sdk.Function to 1.0.38 having Newtonsoft.Json dependency >= 11.0.2.
This worked well and HTTP triggered functions started working fine. But while testing I realized that my Azure Functions having timer trigger are not firing. I have few functions running every 5 minutes stopped working. I waited for more than few hours and none of the timer trigger functions were fired.
I tried resyncing timer triggers by:
Restart your function app in the Azure portal
Send an HTTP POST request to https://{functionappname}.azurewebsites.net/admin/host/synctriggers?code=<API_KEY> using the master key
As mentioned in this post: https://learn.microsoft.com/en-us/answers/questions/526830/azure-timer-trigger-not-firing.html
But this didn't solved the issue. I verified that I have correct AzureWebJobsStorage app setting.
If I rollback all these changes, the azure function starts working fine. So the issue seems to be due to unsupported package.
Any pointer would be helpful. Thank you!