How to do it...

  1. Create a new function app named MyProductionApp.
  2. Create a new HTTP trigger and name it MyProd-HttpTrigger1. Please replace the last line with the following:
         return name == null ?           req.CreateResponse(HttpStatusCode.BadRequest, "Please pass a           name on the query string or in the request body")          : req.CreateResponse(HttpStatusCode.OK, "Welcome to MyProd-           HttpTrigger1 of Production App " + name);
  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 ?          req.CreateResponse(HttpStatusCode.BadRequest, "Please pass a          name on the query string or in the request body") : req.CreateResponse(HttpStatusCode.OK, ...

Get Azure Serverless Computing Cookbook 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.