How to integrate Azure.Data.Tables in Cosmos DB trigger

lakshmi 816 Reputation points
2023-01-09T17:23:18.467+00:00

We are developing a chat bot. For Azure functions , we are using Cosmos DB trigger which needs Microsoft.Azure.Cosmos.

In interfaces we have implemented using Cosmos tables which got deprecated and migrated to Azure.Data.Tables.

So , will this create any issue in azure functions.

Azure function :

277533-276978-image.png

Table Provider contains the method to access the repository using table client and Agent Log entity is the interface .

277571-276947-image.png

Interface for Azure function :

277543-276925-image.png

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,902 questions
{count} votes

Accepted answer
  1. MikeUrnun 9,777 Reputation points Moderator
    2023-01-15T21:43:31.86+00:00

    Hello @Aiswarya Lakshmy - I'm looking into this issue. Per the screenshot that you've posted, I see that you've both Cosmos trigger and Table input binding in the function signature - are you looking to trigger the function upon a new insert in the Table storage? If that's the case, the Change Feed in CosmosDB, which the Cosmos trigger in Functions is based on, doesn't seem it supports Table API: Supported APIs and client SDKs

    If I misunderstand, please let me know and I'll ask my peers who work on Azure SDK support.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.