Viewed 6 times

I have an HTTP triggered Azure Function written in Python. I also have a CosmosDB container with a stored procedure which takes no parameters. How do I call this stored procedure from within the Azure Function's Python code?

  • After reviewing the Cosmos docs, I know that one can create an HTTP trigger for the Cosmos DB send a request to the appropriate URL, but I've been unable to find out if this is necessary, and if it is, are there any Azure Python modules that create the necessary URLs and boiler plate.
  • I've been unable to find in the Azure Functions docs if there are binding for stored procedures.
import azure.functions as func

def main(req: func.HttpRequest) -> func.HttpResponse:
    # What do I type here?
    return func.HttpResponse(....)

Similar Questions