How to do it...

Perform the following steps:

  1. Create a new function app named MyProductionApp.
  2. Create a new HTTP trigger and name it MyProd-HttpTrigger1. Replace the last line with the following:
return name != null        ? (ActionResult)new OkObjectResult("Welcome to MyProd-HttpTrigger1 of Production App")        : new BadRequestObjectResult("Please pass a name on the query string or in the request body");
  1. Create another new HTTP trigger and name it MyProd-HttpTrigger2. Use the same code that you used for MyProd-HttpTrigger1—just replace the last line with the following:
return name != null        ? (ActionResult)new OkObjectResult("Welcome to MyProd-HttpTrigger2 of Production App") : new BadRequestObjectResult("Please pass a name on the query string or ...

Get Azure Serverless Computing Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.