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 an activity function

Perform the following steps:

  1. Create a new function named ConveyGreeting using the Durable Functions activity template:
  1. Replace the default code with the following code, which displays the name that is provided as input, and then click on the Save button to save your changes:
        #r "Microsoft.Azure.WebJobs.Extensions.DurableTask"        public static string Run(string name)        {           return $"Hello Welcome Cookbook Readers!";        }
  1. In the Advanced editor of the Integrate tab, replace the default code with the following code:
        {           "bindings": [           {              "name": "name",              "type": "activityTrigger",              "direction": "in"           }           ]        }

In this recipe, ...

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