title: Read Blob Storage Azure Function HttpTrigger
body: <p>Despite many posts in here or elsewhere I still have not found how to read a blob storage from an azure function.</p>
  
  <p>I have as follows</p>
  
  <p><a href="https://i.stack.imgur.com/jg2pU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jg2pU.png" alt="enter image description here"></a></p>
  
  <p>Each of the above containers  has  a json file “customer.json”</p>
  
  <p>Now I need to call my function and pass a parameter eg "london" to retrieve the london customer</p>
  
  <pre><code>Customer customer= await azureFunctionService.GetCustomer(“London”);
  </code></pre>
  
  <p>What should the function look like, ideally I would like to use input binding to read the json file from a function but any other way is fine too.</p>
  
  <pre><code>        [FunctionName("GetCustomer")]
          public static void Run(
              [HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] HttpRequest req,
              string inputBlobPath,
              [Blob("howDoIBuildPathIncludingtheparameter", 
                  FileAccess.Read, Connection = "WhereDoIGetThis")] string json,
              ILogger log)
          {
              // Not sure if anything is required here apart from logging when using input binding
              //
          }
  </code></pre>
  
  <p>Any suggestions?</p>
  
  <p>many thanks</p>