title: Azure Function URL missing Function key
body: <p>I have deployed .Net core function app in Azure. Have successfully created a Build and release pipeline. When I go the the specific function in Azure and click the button Get Function URL, I dont see function key appended to the url</p>
  <p>All i see is the following error</p>
  <p><a href="https://srlcustomermanagerapp.azurewebsites.net/api/customers-details" rel="nofollow noreferrer">https://srlcustomermanagerapp.azurewebsites.net/api/customers-details</a></p>
  <p>When I try to run this url , I get 500 internal error. I have run the function app locally and it runs perfectly fine.</p>
  <p>Am I missing some configuration in the Azure portal as when I click the Get Url button I should be getting an URL with the function key to it</p>
  <p>I tried running the function from code + Test shown below as well as using postman and get 500 error</p>
  <p>Screenshot</p>
  <p><a href="https://i.stack.imgur.com/k1prb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k1prb.png" alt="enter image description here" /></a></p>
  <p>Get Function URL</p>
  <p><a href="https://i.stack.imgur.com/oE3DA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oE3DA.png" alt="enter image description here" /></a></p>
  <p>Function</p>
  <pre><code> public  class GetCustomersOrders
      {
          private readonly ICustomerOrdersRepository _repo;
          private readonly IMapper _mapper;
          private readonly TelemetryClient _telemetryClient;
  
  
          public GetCustomersOrders(ICustomerOrdersRepository repo, IMapper mapper, TelemetryConfiguration configuration)
          {
              _repo = repo;
              _mapper = mapper;
              _telemetryClient = new TelemetryClient(configuration);
          }
  
          [FunctionName(&quot;GetCustomersOrders&quot;)]
          public async Task&lt;IActionResult&gt; Run(
              [HttpTrigger(AuthorizationLevel.Function, &quot;get&quot;, Route = &quot;customer-orders&quot;)] HttpRequest req,
              ILogger log)
          {
              this._telemetryClient.TrackTrace(&quot;C# HTTP trigger function processed a request.&quot;);
              var customersOrders = _repo.GetCustomerOrders();
              return new OkObjectResult(_mapper.Map&lt;List&lt;CustomerOrdersViewModel&gt;&gt;(customersOrders));
          }
      }
  </code></pre>