title: Images uploaded to Azure blob storage unavailable when browsing by direct URL
body: <p>I have uploaded a number of images to a Blob container on an Azure storage account of type StorageV2 (general purpose v2).</p>
  
  <p>These were uploaded programmatically. Here's the code I used:</p>
  
  <pre><code>public Task CopyFile(string fileName, string targetPath)
  {
      var blobRef = Container.GetBlockBlobReference(targetPath);
  
      blobRef.Properties.ContentType = GetContentType(fileName);
  
      return blobRef.UploadFromFileAsync(fileName);
  }
  
  public string GetContentType(string fileName)
  {
      var provider = new FileExtensionContentTypeProvider();
  
      if (!provider.TryGetContentType(fileName, out var contentType))
      {
          contentType = "application/octet-stream";
      }
  
      return contentType;
  }
  </code></pre>
  
  <p><code>Container</code> is an initialized <code>CloudBlobContainer</code> instance.</p>
  
  <p>When I use the Storage Explorer I can see the uploaded files. If I view the properties of any file it lists a Uri property. However, if I copy the value (a URL) and paste into a browser I see the following error page:</p>
  
  <pre><code>&lt;Error&gt;
      &lt;Code&gt;ResourceNotFound&lt;/Code&gt;
      &lt;Message&gt;
          The specified resource does not exist. RequestId:12485818-601e-0017-6f69-56c3df000000 Time:2019-08-19T08:35:13.2123849Z
      &lt;/Message&gt;
  &lt;/Error&gt;
  </code></pre>
  
  <p>But if I double-click the file in Storage Explorer it downloads the image correctly. The URL it uses is the same as the one I copied earlier as far as I could tell, except for some additional querystrings that look like this: <code>?sv=2018-03-28&amp;ss=bqtf&amp;srt=sco&amp;sp=rwdlacup&amp;se=2019-08-19T16:49:38Z&amp;sig=%2FJs7VnGKsjplalKXCcl0XosgUkPWJccg0qdvCSZlDSs%3D&amp;_=1566204636804</code></p>
  
  <p>I assume this must mean my blobs are not publically available, but I can't find any setting that will make my images available publically at their known URI. Can anyone point me in the right direction here? Thank you.</p>