In my case the problem was the version of the extension bundles
What I had to do is:
Locate the `host.json` of your function app
Update the
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[3.*, 4.0.0]"
}
}
To
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[4.*, 5.0.0)"
}
}