title: How can my HTTP triggered Azure Function have the request's parameters directly passed to the Run method?
body: <p>I have the following Azure Function triggered by an HTTP call: </p>
  
  <pre><code>public static class MyAzureFunction
  {
      [FunctionName("api/v1/resource/")]
      public static async Task Run([HttpTrigger(AuthorizationLevel.Function, "get")]HttpRequestMessage request, ILogger logger)
      {
          // Extract query string params from the request...
      } 
  }
  </code></pre>
  
  <p>I would like to have the parameters to be automatically passed to the Run method, the same way it is being done with ASP.NET Core Web API, instead of having to extract them from the request itself and parse them. </p>
  
  <p>Here is an example of what I would like to get:</p>
  
  <pre><code>[FunctionName("api/v1/resource/{resourceId}")]
  public static async Task Run([HttpTrigger(AuthorizationLevel.Function, "get")]HttpRequestMessage request, ILogger logger, int resourceId)
  {
       // ...
  } 
  </code></pre>
  
  <p>Or, when doing a POST:</p>
  
  <pre><code>[FunctionName("api/v1/resource/")]
  public static async Task Run([HttpTrigger(AuthorizationLevel.Function, "post")]HttpRequestMessage request, ILogger logger, [FromBody] SomeEntityModel entityModel)
  {
           // ...
  }
  </code></pre>