Events are things that trigger our Azure Functions to run. Events can be HTTP endpoints, message queues, blob updates, and cron-scheduled events. To elaborate more by giving an example, what if you want to be notified when a file is uploaded on blob storage or you want to immediately process a file when it is uploaded to blob storage?
The following diagram shows how the Azure Function works, which gets triggered when an event occurs:
The following are the types of event that cause the function to run:
- HTTP Trigger: This is an event that causes the function to run whenever it receives an HTTP request.
- Timer Trigger: This type of trigger is run on the basis of a schedule. We can set the time for the trigger and the function runs at that specified time.
- Queue Trigger: The Azure Function will run whenever a message is added to a specified Azure queue storage.
- Blob Trigger: The Azure Function will run whenever a blob is added to a specified container, for example...