Angelo Peca Thanks for posting your question in Microsoft Q&A. Based on your project reference, you are using version 4.2.0
of Microsoft.Azure.WebJobs.Extensions.CosmosDB
. However, the attributes collectionName
, ConnectionStringSetting
you mentioned are not available in this version and only available in older version (v3).
Here is doc reference Attributes for Functions 2.x+
Newer version: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2-output?pivots=programming-language-csharp&tabs=python-v2%2Cin-process%2Cextensionv4#attributes
(Refer CosmosDBTriggerAttribute.cs)
You can refer code snippet Queue trigger, write one doc (v4 extension) and make the changes accordingly. Sorry for the confusion and please feel free to submit the feedback to doc team via This page at the bottom of the doc.
I hope this helps and let me know if you have any questions.