title: Azure Function storage account connection string
body: <p>I have a function app defined like</p>
  
  <pre><code>[StorageAccount("DefaultEndpointsProtocol=...;AccountName=…;AccountKey=...")]
  public static class Function1
  {
      [FunctionName("Function1")]
      [return: Queue("lets-test-this-out")]
      public static async Task&lt;string&gt; Run([QueueTrigger("lets-test-this-in")] Guid  guid, TraceWriter log)
      {
          await Task.Delay(1000);
          log.Info($"C# Queue trigger function processed: {guid}");
          return Guid.NewGuid().ToString();
      }
  }
  </code></pre>
  
  <p>where <code>lets-test-this-in</code> and <code>lets-test-this-out</code> are the name of existing storage queues under the storage account with connection string <code>"DefaultEndpointsProtocol=...;AccountName=…;AccountKey=..."</code> (copied straight from <strong>Access keys - Connection string</strong> in the portal). My generated function.json when I publish is like</p>
  
  <pre><code>{
    "generatedBy": "Microsoft.NET.Sdk.Functions.Generator-1.0.6",
    "configurationSource": "attributes",
    "bindings": [
      {
        "type": "queueTrigger",
        "queueName": "lets-test-this-in",
        "connection": "DefaultEndpointsProtocol=...;AccountName=...;AccountKey=...;",
        "name": "guid"
      }
    ],
    "disabled": false,
    "scriptFile": "../bin/FunctionAppTest.dll",
    "entryPoint": "FunctionAppTest.Function1.Run"
  }
  </code></pre>
  
  <p>which the only thing suspicious about that is I don't see <code>[return: Queue("lets-test-this")]</code> being translated to any value there. </p>
  
  <p>Anyways, this isn't working:</p>
  
  <ul>
  <li>When I try to test the function in the portal, I see <code>Status: 202 Accepted</code>, but nothing is logged in the output pane.</li>
  <li>When I drop a message in <code>lets-test-this-in</code>, it does not get picked up. </li>
  <li>Streaming logs will say <code>[Info] Executing HTTP request</code> and then nothing.</li>
  </ul>
  
  <p>Interestingly though, if I re-publish after removing the <code>[StorageAccount]</code> attribute then I can test in the portal and see in Streaming logs that it is still being executed. </p>
  
  <p>Possibly related is that my <code>local.settings.json</code> is like</p>
  
  <pre><code>{
      "IsEncrypted": false,
      "Values": {
          "AzureWebJobsStorage": "UseDevelopmentStorage=true",
          "AzureWebJobsDashboard": "UseDevelopmentStorage=true"
      }
  }
  </code></pre>