[Python] Azure Function http_trigger reuse Cosmos DB client

Discussão em 'Python' iniciado por Stack, Março 19, 2025.

  1. Stack

    Stack Membro Participativo

    I am creating an Azure function in Python with a http_trigger. It’s using the v2 model. I am wondering if it is best practice to create a static client to my Cosmos DB and how would you accomplish that. Other articles I found were for v1. When I add the client in the global section it fails to load in Azure.

    Continue reading...

Compartilhe esta Página