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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.