Skip to Content
Hands-On Serverless Computing
book

Hands-On Serverless Computing

by Kuldeep Chowhan
July 2018
Intermediate to advanced
350 pages
8h 47m
English
Packt Publishing
Content preview from Hands-On Serverless Computing

Trigger

The Azure Cosmos DB Trigger listens to the messages sent to the Azure Cosmos DB change feed for inserts and updates to data across partitions. The change feed doesn't publish deletes; it only does inserts and updates.

Let's look at how we can create a trigger for Cosmos DB through Azure Portal:

  1. Select your Azure Function from the Function Apps page
  2. Navigate to Integrate
  3. Click on New Trigger
  4. Choose Azure Cosmos DB

The preceding steps can be seen in the following screenshot:

  1. Click Select at the bottom
  2. On the next page, follow the instructions to provide the necessary information for Cosmos DB:
    • Database name
    • Collection name
    • Collection ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn AWS Serverless Computing

Learn AWS Serverless Computing

Scott Patterson
Erlang and OTP in Action

Erlang and OTP in Action

Eric Merritt, Richard Carlsson, Martin Logan

Publisher Resources

ISBN: 9781788836654Supplemental Content