title: Azure function missing bindings in local for function.json
body: <p>Visual Studio 2017 v15.9.25.</p>
  <p>Azure function v2.</p>
  <p>Here's my run function:</p>
  <pre><code>public static async Task Run(
          [TimerTrigger(&quot;0 */2 * * *&quot;)]TimerInfo myTimer,
          ILogger log,
          [Blob(&quot;BlobContainer/blob.json&quot;, FileAccess.ReadWrite, Connection = &quot;AzureWebJobsStorage&quot;)] CloudBlockBlob stateStore,
          ExecutionContext context)
      {
  </code></pre>
  <p>When I build the function locally in VS, the <code>function.json</code> doesn't have the binding to the blob storage.</p>
  <p>So, when I try to run it locally, it gives the following error:</p>
  <pre><code> The 'AzureFunctionApp' function is in error: 
  Microsoft.Azure.WebJobs.Host: Error indexing method 'AzureFunctionApp'. 
  Microsoft.Azure.WebJobs.Host: Can't bind Blob to type 'Microsoft.Azure.Storage.Blob.CloudBlockBlob'.
  </code></pre>
  <p>This is the <code>host.json</code> :</p>
  <pre><code>{
    &quot;version&quot;: &quot;2.0&quot;,
    &quot;logging&quot;: {
      &quot;applicationInsights&quot;: {
        &quot;samplingExcludedTypes&quot;: &quot;Request&quot;,
        &quot;samplingSettings&quot;: {
          &quot;isEnabled&quot;: true
        }
      }
    }
  }
  </code></pre>
  <p>Here are the dependencies:</p>
  <p><a href="https://i.stack.imgur.com/0F3nt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0F3nt.png" alt="Dependencies" /></a></p>
  <p>I've tried the following:</p>
  <ol>
  <li>Repairing Visual Studio.</li>
  <li>Adding the remote Azure function in publish settings.</li>
  <li>Running via <code>func host json</code> as well as debugging in VS17.</li>
  </ol>
  <p>I've read other 6 similar questions but didn't find the solution helpful.</p>
  <p>Kindly help me fix it.</p>