How to ensure whether we are using cosmos databad in the function app

Jagannath Badam (WIPRO LIMITED) 0 Reputation points

Hi Team ,

I need to upgrade Azure Cosmos DB extension version 3.x to version 4.x based on notification mail.

How to ensure whether we are using cosmos database in the function app. Highly appreciate if anyone provide the solution , that will be great help.



Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,705 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 15,316 Reputation points

    @Jagannath Badam (WIPRO LIMITED) Thanks for reaching out. you can identify if your Azure Function App is using Cosmos DB by checking the application settings and extensions. In your Azure Function App settings, you should have a setting for the Cosmos DB connection string. This is usually named CosmosDBConnection or something similar. This setting contains the connection string to your Cosmos DB account.

    The Azure Cosmos DB extension needs to be registered in your function app for the Cosmos DB bindings to work. You can check this in your extensions.csproj file in your function app’s project. If you’re using the Cosmos DB extension, you should see a package reference to Microsoft.Azure.WebJobs.Extensions.CosmosDB.

    let me know incase of further queries, I would be happy to assist you.

    0 comments No comments