Azure / azure-functions-python-worker

Python worker for Azure Functions.
http://aka.ms/azurefunctions
MIT License
333 stars 103 forks source link

CosmosDB V4 extension update #1222

Closed gavin-aguiar closed 10 months ago

gavin-aguiar commented 1 year ago

Versions 4.x+ of the Cosmos DB extension for Azure Functions includes different several changes in parameter names. We are updating the v2 programming model for Functions in Python to provide first class support for the new version of Cosmos DB.

If you are currently using the Cosmos DB extension with the v2 programing model for Python, this may mean a breaking change for you. Once support for the latest Cosmos DB extension is live, the existing decorator names will refer to the new extension.

The new decorator names will be as follows:

Extension 2.x and 3.x

Extension 4.x and above

We recommend using version 4.x and above of the Cosmos DB extension, as the older extensions will soon be unsupported due to the underlying SDK being deprecated.

KNMohamed commented 1 year ago

Hi @gavin-aguiar, This PR was problematic for us. The update to the Cosmos DB extension introduced breaking changes into our application without us knowing. Is there anyway we can pin our backend to use an earlier release of the azure-functions-python-worker? When setting FUNCTIONS_EXTENSION_VERSION=4.12.0 in our configuration it complains that it can't find the runtime.

gavin-aguiar commented 1 year ago

Hi @yourmaingotoguy , you won't be able to pin the azure-functions-python-worker but if you're still using the older extensions, you can pin the azure-functions version to 1.13.3.