Azure function and Azure Cosmos DB conflict feed Integration

406 Views Asked by At

Does Azure function support Azure Cosmos DB conflict feed based trigger like how Azure function supports below Cosmos change feed trigger? If not why?

   public async Task RunAsync([CosmosDBTrigger(
        databaseName: "cars-island-eshop",
        collectionName: "Customer",
        ConnectionStringSetting = "CosmosDbConnectionString",
        CreateLeaseCollectionIfNotExists = true,
        LeaseCollectionName = "Lease",
        LeaseCollectionPrefix = "UpdateCustomerDataInOrder")]IReadOnlyList<Document> input, ILogger 
       log)
       {
         ..............
       }
1

There are 1 best solutions below

2
Mark Brown On

No there is no trigger mechanism for the conflict feed in Cosmos DB. You need to manually query it on a timer.