Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. [FunctionName("Function1")]
  2. public static void Run([CosmosDBTrigger(
  3. databaseName: "cdb",
  4. collectionName: "myc",
  5. ConnectionStringSetting = "DBConnection",
  6. LeaseCollectionName = "leases")]IReadOnlyList<Document> input,
  7. TraceWriter log)
  8. {
  9. if (input != null && input.Count > 0)
  10. {
  11. log.LogInformation("Documents modified " + input.Count);
  12. log.LogInformation("First document Id " + input[0].Id);
  13. }
  14. }
  15.  
  16.  
  17. {
  18. "IsEncrypted": false,<br/>
  19. "Values": {<br/>
  20. "AzureWebJobsStorage": "Storage account key",<br/>
  21. "AzureWebJobsDashboard": "Storage account key",<br/>
  22. "DBConnection": "Cosmos db connection string"<br/>
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement