title: Azure Function not deserializing object
body: <p>In the latest version of Azure Functions I am unable to get a function to deserialize an object on its way in.</p>
  
  <p><strong>Versions:</strong></p>
  
  <p>Azure Functions Core Tools: <strong>1.0.0-beta.100</strong></p>
  
  <p>Function Runtime Version: <strong>1.0.11015.0</strong></p>
  
  <p>Visual Studio: <strong>15.3.0 Preview 4.0</strong></p>
  
  <p>Example (Not Working):</p>
  
  <pre><code>[FunctionName("Login")]
  public static async Task&lt;HttpResponseMessage&gt; Login([HttpTrigger(AuthorizationLevel.Function, "post", Route = null)]HttpRequestMessage req, ILogger log, AuthenticatingUser user)
  {
      return await Task.Run(() =&gt;
      {
          return req.CreateResponse(HttpStatusCode.OK, user.Username);
      });
  }
  </code></pre>
  
  <p>When attempting to use Postman to post to this function, I always get the following error:</p>
  
  <blockquote>
    <p>Exception while executing function: Functions.Login. Microsoft.Azure.WebJobs.Host: Exception binding parameter 'user'. Microsoft.Azure.WebJobs.Host: No value was provided for parameter 'user'.</p>
  </blockquote>
  
  <p>I have tried posting with form-data, x-www-form-urlencoded and raw (with JSON selected - what i expected to work). All end up with the same error.</p>
  
  <p>When I take out the user from the function, I can access the JSON being passed in via:</p>
  
  <pre><code>var content = req.Content;
  string jsonContent = content.ReadAsStringAsync().Result;
  </code></pre>
  
  <p>In previous versions of Azure Functions (notable <strong>not</strong> built using the Visual Studio extension, involves JSON files, etc) this worked as expected.</p>
  
  <p>I'm posting various versions of the following:</p>
  
  <pre><code>{
      "Username": "myUserName",
      "Password": "MyPassword123"
  }
  </code></pre>
  
  <p>Model for the user:</p>
  
  <pre><code>public class AuthenticatingUser
  {
      public string Username { get; set; }
      public string Password { get; set; }
  }
  </code></pre>