title: How can I use a BlobTrigger to bind to CloudBlockBlob in an Azure Function?
body: <p>I have the following function in my project:</p>
  
  <pre><code>[FunctionName("my-func")]
  public static async Task Run([BlobTrigger("data/{name}")] CloudBlockBlob blob, string name, TraceWriter log)
  {
      log.Info($"Started Processing: {name}");
  
      await blob.DeleteAsync();
  
      log.Info($"Finished Processing: {name}");
  }
  </code></pre>
  
  <p>When I attempt to run the function locally using v1.0.4 of the Azure Functions CLI I get this error: </p>
  
  <pre><code>Microsoft.Azure.WebJobs.Host: Error indexing method 'SampleFunction.Run'. Microsoft.Azure.WebJobs.Host: Can't bind BlobTrigger to type 'Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob'.
  </code></pre>
  
  <p>All documentation I have seen for Azure Functions and WebJobs SDK say this is supported.</p>
  
  <p><a href="https://github.com/Azure/azure-webjobs-sdk/wiki/Blobs#-types-that-you-can-bind-to-blobs" rel="noreferrer">https://github.com/Azure/azure-webjobs-sdk/wiki/Blobs#-types-that-you-can-bind-to-blobs</a></p>