Perform the following steps:
- Navigate to the Cosmos DB Account and click on the Add Azure Function menu in the All settings blade of the Cosmos DB account.
- You will be taken to the Add Azure Function blade, where you will choose the Azure function app in which you would like to create a new function (Cosmos DB trigger). This will be triggered whenever a change in the collection happens. Here is what it looks like:
- Once you have reviewed the details, click on the Save button (shown in the previous screenshot) to create the new function, which will be triggered for every change that is made in the collection. Let's quickly ...