Chapter 3: Azure Durable Functions
Activity 3: Using a Durable Function to Manage an Email Verification Workflow
Create a new function app called VerifyUserEmail in a new folder and install Durable Functions, Cosmos DB, and SendGrid:
func extensions install -p Microsoft.Azure.WebJobs.Extensions.DurableTask -v 1.6.2 dotnet add package Microsoft.Azure.WebJobs.Extensions.SendGrid --version 3.0.0 dotnet add package Microsoft.Azure.WebJobs.Extensions.CosmosDB --version 3.0.2

Figure 3.58: Durable Functions project
Add a function called UserAdded using the CosmosDBTrigger. It will all be templated out by VS Code, but the code is here, too:
using System.Collections.Generic; using Microsoft.Azure.Documents; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Host; using Microsoft.Extensions.Logging; namespace VerifyUserEmail.OrchestrationTriggers { public static class UserAdded { [FunctionName("UserAdded")] public static void Run([CosmosDBTrigger( databaseName: "serverless...