I'm developing Azure Functions using Python 3.10.10 on my machine, deploying the Function through Azure DevOps which is building the artifact using Python 3.6.8, and the Python Version
shown for the Function App host is 3.8.
There was a recent update of Azure Functions Runtime which deprecated Python 3.6. (see breaking changes here).
How does python version affect Azure Functions? How do we keep the versions aligned?
Always keep in Azure DevOps a version of python venv that matches the App host and also keep the same dependencies within a requirements.txt
file so that you don't have conflicts from different libraries.
On your local you should also have a python venv that matches the same version of the host. I would suggest to downgrade from your current 3.10.10 to 3.8.x just to avoid having conflicts.
Python version per se shouldn't generally affect functionality (unless there are big changes between minor versions), it's usually the library dependencies that are breaking the functionalities (deprecation and implementations of methods in different way)