Skip to Content
Azure Serverless Computing Cookbook - Second Edition
book

Azure Serverless Computing Cookbook - Second Edition

by Praveen Kumar Sreeram, Jason Marston
November 2018
Intermediate to advanced
424 pages
10h 55m
English
Packt Publishing
Content preview from Azure Serverless Computing Cookbook - Second Edition

Creating a timer trigger

Perform the following steps:

  1. Click on the + icon, search for timer, and click on the Timer trigger button.
  2. In the New Function popup, provide the details for this new function. The Schedule here is a CRON expression that ensures that the timer trigger gets triggered automatically every 5 minutes:

  1. Paste the following code into the code editor and save your changes. The following code simulates traffic by making HTTP requests programmatically. Be sure to replace <<FunctionAppName>> with the actual name of your function app:
using System;public async static void Run(TimerInfo myTimer, ILogger log){using (var httpClient ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Azure Serverless Computing Cookbook

Azure Serverless Computing Cookbook

Praveen Kumar Sreeram
Azure Serverless Computing Cookbook - Third Edition

Azure Serverless Computing Cookbook - Third Edition

Praveen Kumar Sreeram, Kasam Shaikh, Greg Leonardo
Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni

Publisher Resources

ISBN: 9781789615265Supplemental Content