Example of creating a simple scheduled trigger
Consider a simple example where we have to display a "good morning" message on screen every day in the morning at 8 AM. This situation is related to time so we need to use a schedule trigger. This is the type of trigger we will look at later in this chapter. Let's start creating a function with the schedule trigger first:
- Log in to the Azure Portal.
- Click on the top left
+
icon |Compute
|Function App
:
![](https://static.packt-cdn.com/products/9781787122932/graphics/688c3428-d845-4bf1-b6d8-11ac5b8dfcbf.png)
- Once we click on
Function App,
the next screen will appear, where we have to provide a unique functionApp name
,Subscription
,Resource Group
,Hosting Plan
,Location
,Storage
, and then click on theCreate
button:
![](https://static.packt-cdn.com/products/9781787122932/graphics/9a94b95f-0221-4afb-b6b8-a2bef6349286.png)
- Once we click on the
Create
button, Azure will start to deploy this function. Once this function is deployed, it will be seen inNotifications,
as shown in the following screenshot:
![](https://static.packt-cdn.com/products/9781787122932/graphics/619c6e2e-9aa8-4869-9b8d-f32969b64b81.png)
- Click on
Notifications
and check theFunctions
details and add the trigger:
![](https://static.packt-cdn.com/products/9781787122932/graphics/38bd5633-e5ef-424e-a24e-094a29cf137e.png)
- To add a trigger in this function, click on the
+
icon next toFunctions
and then...