title: Accessing metadata from azure storage blob
body: <p>I can't seem to find a method to access individual blob metadata for blobs in Azure Storage.</p>
  
  <p>FetchAttributes only works on the whole container. My method returns a list of blobs which match the parameters I set. I then need to iterate through that list and retrieve some metadata from each of those blobs but I am not finding any methods to do so.</p>
  
  <p>It seems like a lot of overhead, but should I be Fetching those attributes when I create the container object, and then filtering for the blob list?</p>
  
  <p>So, I figured I'd try that,</p>
  
  <pre><code> public static IEnumerable&lt;GalleryPhoto&gt; GetGalleryPhotos(string folderPath)
   {
  
          var container = CreateAzureContainer(containerName, false);
          container.FetchAttributes();
          var blobDirectory = container.GetDirectoryReference(folderPath);
          var photoGalleries = new List&lt;GalleryPhoto&gt;();
          var blobs = blobDirectory.ListBlobs().ToList();
  
         ...rest of code
    }
  </code></pre>
  
  <p>The blob objects in blobs, show 0 for the metadata count.
  Each of the items HAVE metadata, verified by looking at the properties in Azure Storage Explorer for each blob.</p>
  
  <p>Any help appreciated.</p>