Time
1 hour
Difficulty
Beginner
CEU/CPE
1

Video Transcription

00:01
before we create the function. Still, let's talk about triggers and bindings.
00:07
What are three girls
00:09
triggers defined how the function is involved. For example, that http trigger involves the function. When an http request is sent to the functions endpoint
00:21
on actual function must calf exactly 13 go.
00:24
You cannot have multiple triggers for the same function.
00:28
If you want to have the same functionality executed for two different triggers, you need to create two separate functions with the same functionality but using different triggers.
00:39
Last but not least,
00:41
trigger Skaff associated data with them. For example, http TRIGGER has the request data while the timer trigger has information About the time
00:52
when the function was three gun
00:54
we were looking toe those
00:56
later In this model,
00:59
those are triggers. Then what are bindings?
01:03
Binding is away toe decoratively connect the resource toe a function.
01:07
For example, if you want your function to read some data from a storage blob, you can decoratively connected to the storage container.
01:15
There are input bindings, output bindings and combined bindings that you can use for input and output.
01:23
Coming back to our example. With the storage blob, you can have one storage account US import binding to read the data from in another storage account as output binding toe right the results toe
01:36
or you can have a single storage account for both reading the data and raiding the results.
01:42
The data from the bindings is provided to the function as a part of matter.
01:47
This means that you can implement the reading and writing of the data without worrying how to connect to the service.
01:53
You can mix and match function bindings depending on your needs.
01:57
Your function can have no biting bindings at all or multiple input and output bindings.
02:05
Unlike triggers, bindings are optional.
02:07
Both triggers and bindings are lonely toe access to other services without the need to hard code connection information.
02:15
Now that we know what triggers and bindings are, let's see how we can create functions that use different triggers and bindings.

Up Next

Azure Functions

This Azure Functions course explains the core concepts of serverless services in Azure, how to develop functions that use different triggers and how to secure access of Azure Functions and manage configuration secrets.

Instructed By

Instructor Profile Image
Toddy Mladenov
Instructor