0
0
Azurecloud~10 mins

Trigger types (HTTP, Timer, Blob, Queue) in Azure - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Trigger types (HTTP, Timer, Blob, Queue)
Event Occurs
Trigger Type?
Run Function with Event Data
Function Executes
Output or Side Effect
When an event happens, Azure Functions check the trigger type (HTTP, Timer, Blob, or Queue) and run the function with the event data.
Execution Sample
Azure
Trigger: HTTP
Request: GET /api/hello
Function: Returns 'Hello World!'
This function runs when an HTTP GET request is received and returns a greeting.
Process Table
StepTrigger TypeEventFunction ActionOutput
1HTTPGET /api/helloFunction runs with HTTP request dataReturns 'Hello World!'
2TimerTimer fires at 12:00Function runs on scheduleLogs 'Timer triggered'
3BlobNew blob uploaded 'image.png'Function runs with blob dataProcesses and stores metadata
4QueueMessage added to queueFunction runs with queue messageProcesses message and deletes it
5---No event, no function run
💡 Execution stops when no trigger event occurs.
Status Tracker
VariableStartAfter HTTPAfter TimerAfter BlobAfter QueueFinal
Trigger EventNoneHTTP RequestTimer EventBlob UploadQueue MessageNone
Function StateIdleRunningRunningRunningRunningIdle
OutputNone'Hello World!''Timer triggered'Metadata storedMessage processedNone
Key Moments - 3 Insights
Why does the function run only when a trigger event happens?
Because Azure Functions are event-driven, they stay idle until a trigger event occurs, as shown in execution_table rows 1-4. Row 5 shows no event means no run.
How does the function know what data to use for each trigger?
Each trigger type passes specific event data to the function, like HTTP request info, timer schedule, blob content, or queue message, as seen in the 'Event' and 'Function Action' columns in the execution_table.
Can multiple trigger types run the same function?
Yes, but each trigger event runs the function separately with its own data, shown by different rows in the execution_table where the function runs for HTTP, Timer, Blob, and Queue triggers.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what output does the function produce when a new blob is uploaded?
A'Hello World!'
B'Timer triggered'
CProcesses and stores metadata
DProcesses message and deletes it
💡 Hint
Check the row where Trigger Type is 'Blob' in the execution_table.
At which step does the function run because of a timer event?
AStep 1
BStep 2
CStep 3
DStep 4
💡 Hint
Look for 'Timer' in the Trigger Type column of the execution_table.
If no event occurs, what is the function state according to variable_tracker?
AIdle
BError
CRunning
DPaused
💡 Hint
Check the 'Function State' row under 'Final' column in variable_tracker.
Concept Snapshot
Azure Functions run when triggered by events.
Common triggers: HTTP request, Timer schedule, Blob storage change, Queue message.
Each trigger passes event data to the function.
Function runs only when triggered, otherwise idle.
Outputs depend on trigger and function logic.
Full Transcript
Azure Functions use triggers to start running. When an event happens, like an HTTP request, a timer firing, a new blob uploaded, or a message added to a queue, the function runs with data from that event. The function stays idle if no event occurs. Each trigger type provides different data to the function, and the function's output depends on the trigger and its code. This event-driven model helps functions run only when needed.