azure-webjobs-sdk-extensions icon indicating copy to clipboard operation
azure-webjobs-sdk-extensions copied to clipboard

CosmosDBTrigger for Java is missing important annotations

Open milismsft opened this issue 6 years ago • 0 comments

Please provide a succinct description of the issue.

Per https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2 when using a CosmosDBTrigger, there are properties such as "leaseCollectionPrefix" which cannot be set. This particular one is very important when setting multiple trigger functions against the same CosmosDB database and collection.

Repro steps

Provide the steps required to reproduce the problem

  1. Step A Create a simple Java Azure Function that uses a CosmosDB trigger

  2. Step B Try to specify "leaseCollectionPrefix" property.

Expected behavior

All the properties as captured in https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2 can be specified.

Actual behavior

Provide a description of the actual behavior observed.

Known workarounds

Provide a description of any known workarounds.

Related information

Provide any related information

  • Package version azure-functions-java-library-1.0.0-beta-5.jar

  • Links to source https://github.com/Microsoft/inventory-hub-java-on-azure/blob/master/function-apps/Notify-Inventory/src/main/java/org/inventory/hub/NotifyInventoryUpdate.java#L28

milismsft avatar Sep 18 '18 05:09 milismsft