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

Jagannath Badam (WIPRO LIMITED) 0 Reputation points
2023-11-17T13:22:49.3833333+00:00

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.

Thanks

Jagannath

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

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 27,176 Reputation points
    2023-11-21T18:05:19.7466667+00:00

    @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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.