title: Azure function implemented locally won't work in the cloud
body: <p>I have the following function, which I define locally and am able to debug it normally.</p>
  
  <pre><code>    [FunctionName("QueueTrigger")]
      public static void DUMMYFUNCTION(
      [QueueTrigger("myqueue", Connection = "AzureWebJobsStorage")]string myQueueItem, TraceWriter log)
      {
          log.Info($"C# function processed: {myQueueItem}");
      }
  </code></pre>
  
  <p>Locally, "AzureWebJobsStorage" is defined in the local.settings.json file to use the storage account which has "myqueue". In the function settings on Azure "AzureWebJobsStorage" is also set to the correct connection string (same as the one set locally). That means, I do not have the same problem as in <a href="https://stackoverflow.com/questions/47598144/azure-function-does-not-execute-in-azure-no-error?rq=1">Azure Function does not execute in Azure (No Error)</a></p>
  
  <p>Now, I use Visual Studio Team Service to host my source code in a git repository. I've configured the deployment to use the source code and deploy the functions contained in it.
  I don't think the issue is related to VSTS because the deployment is performed successfully and the function is displayed in my functions list:</p>
  
  <p><a href="https://i.stack.imgur.com/ZWt1m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZWt1m.png" alt="Queue function on azure"></a></p>
  
  <p>After the deployment, the file function.json is generated and has the content below:</p>
  
  <pre><code>{
    "generatedBy": "Microsoft.NET.Sdk.Functions.Generator-1.0.8",
    "configurationSource": "attributes",
    "bindings": [
    {
       "type": "queueTrigger",
       "connection": "AzureWebJobsStorage",
       "queueName": "myqueue",
       "name": "myQueueItem"
    }],
    "disabled": false,
    "scriptFile": "../bin/myAssembly.dll",
    "entryPoint": "myAssembly.MyClass.DUMMYFUNCTION"
  }
  </code></pre>
  
  <p>The problem is that, when I add an item to the queue while debugging it locally, the function is executed, but when the function is running on azure it does not.</p>
  
  <p>What do I need to change in the code to have it work on azure as well? I thought it would work out-of-the-box.</p>