title: Migrating EPiserver media blobs to Azure Storage Account
body: <p>I am currently researching into migrating the EPiServer 11.10.1 media blobs from a Windows DFS Share to an Azure Storage Account.</p>
  
  <p>The configuration tried is as follows:</p>
  
  <p>web.config (Note: only relevant sections are shown)</p>
  
  <pre><code>&lt;dependentAssembly&gt;
  &lt;assemblyIdentity name="EPiServer.Azure" publicKeyToken="8fe83dea738b45b7" culture="neutral" /&gt;
  &lt;bindingRedirect oldVersion="0.0.0.0-9.4.4.0" newVersion="9.4.4.0" /&gt;
  &lt;/dependentAssembly&gt;
  
  &lt;episerver.framework updateDatabaseSchema="false"&gt;
  &lt;clientResources debug="false" /&gt;
  &lt;appData basePath="" /&gt;
  &lt;scanAssembly forceBinFolderScan="true" /&gt;
  
  &lt;blob defaultProvider="azureblobs"&gt;
  &lt;providers&gt;
  &lt;add name="azureblobs" type="EPiServer.Azure.Blobs.AzureBlobProvider,EPiServer.Azure" connectionStringName="EPiServerAzureBlobs" container="mycontainer"/&gt;
  &lt;/providers&gt;
  &lt;/blob&gt;
  </code></pre>
  
  <p>connectionStrings.config (Note: only relevant sections are shown)</p>
  
  <pre><code>&lt;connectionStrings&gt;
  &lt;clear /&gt;
  &lt;add name="EPiServerAzureBlobs" connectionString="DefaultEndpointsProtocol=https;AccountName=storage00001;AccountKey=NuJBkcpuCbPKH+lcw65OwELkJ1nptJ7CY2Hn4MqNwqwL4WY4C3caSSSJYgH91J6MH9qZPPOOSbAzFZrNk8eIHt6PA==" /&gt;
  &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>When starting the site, the following error is shown in the logs:</p>
  
  <p>(Note: only relevant sections are shown)</p>
  
  <pre><code>2019-02-19 13:12:41,875 [94] [94a2e50f-06c6-4ddc-a6f7-2d1c43b0735d] ERROR 
  EPiServer.Global: Unhandled exception in ASP.NET
  Microsoft.WindowsAzure.Storage.StorageException: The remote server returned 
  an error: (404) Not Found. ---&gt; System.Net.WebException: The remote server 
  returned an error: (404) Not Found.
  at System.Net.HttpWebRequest.GetResponse()
  Request Information
  RequestID:5e731c27-d01e-00cc-4254
  RequestDate:Tue, 19 Feb 2019 13:12:41 GMT
  StatusMessage:The specified blob does not exist.
  </code></pre>
  
  <p>I am unable to see an error which would be causing the media blob (image) not to be displayed.</p>
  
  <p>The following has been tried already but to no avail:</p>
  
  <ul>
  <li>Permissions: Azure Storage Account - Blobs - Contain (anonymous read access for containers and blobs)</li>
  <li>Permissions: The media blob (images) are accessible in a browser independent of the EpiServer platform</li>
  <li>Microsoft Support has confirmed there are no known issues affecting the Storage Account</li>
  </ul>
  
  <p>If this makes a difference, EpiServer itself is running on a dedicated VM (IaaS) and using Azure SQL for databases.</p>
  
  <ul>
  <li>Does appData basePath="" need to contain a value to work with an Azure Storage Account?</li>
  </ul>
  
  <p>Any suggestions on what might be (or what I am doing) wrong are welcome.</p>
  
  <p>Thank you.</p>