Reputation: 91
I am trying to develop in Azure portal an Azure Function (Node.js) that is triggered by Cosmos DB when create a doc. Azure documentation says that to do so, first i have to select "Cosmos db trigger" from templates, but no templates appear in my function... Only HTTP an Timer trigger options appears. I would like to work with CosmosDB and IoTHUB as triggers, input-output. Any requirement that have been overlooked? Why do not I have more triggers options? Need guidance.
Upvotes: 2
Views: 595
Reputation: 15724
It seems you create a "httptrigger" function, you need to create Cosmos DB trigger by the template. Please refer to the steps below: 1. Click "+" --> "In-portal"
2.Click "More templates" --> "Finish and view templates"
3.Choose "Azure Cosmos DB trigger"
5.Fill in the input box with your cosmos db details.
For further information, you can refer to this tutorial.
Upvotes: 5