title: HTTP Trigger not working in deployment, but works locally
body: <p>I have an Azure Function HTTP trigger that is not working in deployment however, it functions as intended when running locally. When I append the URL in deployment it returns saying that the web pages cannot be found. The function is up and running, the URL is <a href="https://st10083210.azurewebsites.net/api/id/" rel="nofollow noreferrer">https://st10083210.azurewebsites.net/api/id/</a>. Any help would be appreciated. Thank you.</p>
  <p>Here is my cs file</p>
  <pre><code>namespace CldvPart1
  {
      public static class ST10083210
      {
          [FunctionName(&quot;ST10083210&quot;)]
          public static async Task&lt;IActionResult&gt; Run(
              [HttpTrigger(AuthorizationLevel.Anonymous, &quot;get&quot;, &quot;post&quot;, Route = &quot;id/{id:long?}&quot;)] HttpRequest req, long? id,
              ILogger log)
          {
              List&lt;IdNumbers&gt; idNumbers = new List&lt;IdNumbers&gt;();
  
              var idNum1 = new IdNumbers(9809094800088, &quot; VACINATION DETAILS\n ID NUMBER: 9809094800088\n -------------------------\n VACCINE DOSE: 1st dose\n VACCINE NAME: Pfizer\n BATCH NUMBER: TY4CL0\n VACCINE DATE: 21/08/21\n LOCATION: Tongaat Sports Hall\n\n VACCINE DOSE: 2nd dose\n VACCINE NAME: Pfizer\n BATCH NUMBER: G83ND0\n VACCINE DATE: 21/10/21\n LOCATION: Tongaat Sports Hall&quot;);
              var idNum2 = new IdNumbers(9106185800089, &quot; VACINATION DETAILS\n ID NUMBER: 9106185800089\n -------------------------\n VACCINE DOSE: 1st dose\n VACCINE NAME: Pfizer\n BATCH NUMBER: 3MC053\n VACCINE DATE: 21/06/12\n LOCATION: Ballito Dischem Pharmacy\n\n VACCINE DOSE: 2nd dose\n VACCINE NAME: Pfizer\n BATCH NUMBER: SX054F\n VACCINE DATE: 21/08/13\n LOCATION: Ballito Dischem Pharmacy&quot;);
              var idNum3 = new IdNumbers(7602135800080, &quot; VACINATION DETAILS\n ID NUMBER: 7602135800080\n -------------------------\n VACCINE DOSE: 1st dose\n VACCINE NAME: Johnson&amp;Johnson\n BATCH NUMBER: 03MNB1\n VACCINE DATE: 21/07/25\n LOCATION: Stanger Clinic&quot;);
              var idNum4 = new IdNumbers(8610264800085, &quot; VACINATION DETAILS\n ID NUMBER: 8610264800085\n -------------------------\n VACCINE DOSE: 1st dose\n VACCINE NAME: Pfizer\n BATCH NUMBER: KY61CV\n VACCINE DATE: 21/12/01\n LOCATION: uMlanga Clicks Pharmacy\n\n VACCINE DOSE: 2nd dose\n VACCINE NAME: Pfizer\n BATCH NUMBER: AX9N7H\n VACCINE DATE: 22/02/08\n LOCATION: uMlanga Clicks Pharmacy&quot;);
              var idNum5 = new IdNumbers(6612024800084, &quot; VACINATION DETAILS\n ID NUMBER: 6612024800084\n -------------------------\n VACCINE DOSE: 1st dose\n VACCINE NAME: Johnson&amp;Johnson\n BATCH NUMBER: QP4DF0\n VACCINE DATE: 21/07/13\n LOCATION: Durban North Clinic&quot;);
  
              idNumbers.Add(idNum1);
              idNumbers.Add(idNum2);
              idNumbers.Add(idNum3);
              idNumbers.Add(idNum4);
              idNumbers.Add(idNum5);
  
              log.LogInformation(&quot;C# HTTP trigger function processed a request.&quot;);
  
              string requestBody = await new StreamReader(req.Body).ReadToEndAsync();
              dynamic data = JsonConvert.DeserializeObject(requestBody);
  
              string responseMessage = &quot;&quot;;
  
              if (id == null)
              {
                  responseMessage = &quot;This HTTP triggered function executed successfully. Please enter an ID number in the URL.&quot;;
              }
  
              for (int i = 0; i &lt; idNumbers.Count; i++)
              {
                  if (idNumbers[i].IdNum.Equals(id))
                  {
                      responseMessage = idNumbers[i].VacInfo; 
                  }
              }
              return new OkObjectResult(responseMessage);
          }
      }
  }
  </code></pre>
  <p>IdNumbers.cs</p>
  <pre><code>namespace CldvPart1
  {
      internal class IdNumbers
      {
          private long idNum;
          private string vacInfo;
  
          public IdNumbers(long idNum, string vacInfo)
          {
              this.IdNum = idNum;
              this.VacInfo = vacInfo;
          }
  
          public long IdNum { get =&gt; idNum; set =&gt; idNum = value; }
          public string VacInfo { get =&gt; vacInfo; set =&gt; vacInfo = value; }
      }
  }
  </code></pre>
  <p>local.settings.json</p>
  <pre><code>{
      &quot;IsEncrypted&quot;: false,
    &quot;Values&quot;: {
      &quot;AzureWebJobsStorage&quot;: &quot;UseDevelopmentStorage=true&quot;,
      &quot;FUNCTIONS_WORKER_RUNTIME&quot;: &quot;dotnet&quot;
    }
  }
  </code></pre>