Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Azure Functions

You're reading from   Learning Azure Functions Build scalable cloud systems with serverless architecture

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781787122932
Length 240 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Mitesh Soni Mitesh Soni
Author Profile Icon Mitesh Soni
Mitesh Soni
Manisha Yadav Manisha Yadav
Author Profile Icon Manisha Yadav
Manisha Yadav
Arrow right icon
View More author details
Toc

Common types of triggers


Let's understand first how a trigger works and get acquainted with the different types of triggers available in Azure Functions.

The architecture of a trigger and how it works is shown in the following figure:

The preceding diagram shows the event that fires the trigger and once the trigger is fired, it runs the Azure Function associated with it.

We need to note a very important point here: one function must have exactly one trigger; in other words, one function can't have multiple triggers.

Now let's see the different types of trigger available in Azure:

  • TimerTrigger: This trigger is called on a predefined schedule. We can set the time for execution of the Azure Function using this trigger.
  • BlobTrigger: This trigger will get fired when a new or updated blob is detected. The blob contents are provided as input to the function.
  • EventHubTrigger: This trigger is used for the application instrumentation, the user experience, workflow processing, and in the Internet of Things...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image