Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CosmosDB V4 extension update #1222

Closed
gavin-aguiar opened this issue Apr 26, 2023 · 2 comments
Closed

CosmosDB V4 extension update #1222

gavin-aguiar opened this issue Apr 26, 2023 · 2 comments
Assignees

Comments

@gavin-aguiar
Copy link
Contributor

gavin-aguiar commented Apr 26, 2023

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

  • cosmos_db_trigger_v3
  • cosmos_db_input_v3
  • cosmos_db_output_v3

Extension 4.x and above

  • cosmos_db_trigger
  • cosmos_db_input
  • cosmos_db_output

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.

@gavin-aguiar gavin-aguiar self-assigned this Apr 26, 2023
@gavin-aguiar gavin-aguiar pinned this issue Apr 28, 2023
@vijaykumar911 vijaykumar911 unpinned this issue May 15, 2023
@KNMohamed
Copy link

KNMohamed commented May 19, 2023

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 gavin-aguiar pinned this issue May 19, 2023
@gavin-aguiar
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants