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 that just displays the name which is provided as input, and then click on theĀ Save button to save the 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, we have created an Orchestration client, an Orchestrator function, and an activity function. We will learn how to test these in our next recipe.