title: Azure Functions - Queue trigger consumes message on fail
body: <p>This issue only occurs when I use the Azure Portal Editor. If I upload from Visual Studio, this issue does not occur, but I cannot upload from Visual Studio due this unrelated bug: <a href="https://stackoverflow.com/questions/50754119/azure-functions-only-use-connection-string-in-application-settings-in-cloud-fo">Azure Functions - only use connection string in Application Settings in cloud for queue trigger</a>.</p>
  
  <p>When using the Azure Portal Editor, if I throw an exception from C# or use <code>context.done(error)</code> from JavaScript, Application Insights shows an error occurred, but the message is simply consumed. The message is not retried, and it does not go to a poison queue.</p>
  
  <p>The same code for C# correctly retries when uploaded from Visual Studio, so I believe this is a configuration issue. I have tried modifying the host.json file for the Azure Portal Editor version to:</p>
  
  <pre><code>{
    "queues": {
          "visibilityTimeout": "00:00:15",
          "maxDequeueCount": 5
      }
  }
  </code></pre>
  
  <p>but the message was still getting consumed instead of retried. How do I fix this so that I can get messages to retry when coding with the Azure Portal Editor?</p>
  
  <p>Notes:</p>
  
  <p>In JavaScript, <code>context.bindingData.dequeueCount</code> returns <code>0</code>.</p>
  
  <p>Azure Function runtime version: <code>1.0.11913.0 (~1)</code>.</p>
  
  <p>I'm using a Consumption App Plan.</p>