public static async Task <IActionResult> Run( [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req, ILogger log) { log.LogInformation("C# HTTP trigger function processed a request."); var data = new StreamReader(req.Body).ReadToEnd(); if (data == string.Empty) { data = "{}"; } var genRoutine = new MainGenerationRoutine(); genRoutine.Execute(data, log); return(new OkObjectResult(string.Empty)); }