{"id":3017,"date":"2017-12-03T12:34:39","date_gmt":"2017-12-03T12:34:39","guid":{"rendered":"http:\/\/pariswells.com\/blog\/?p=3017"},"modified":"2017-12-03T12:34:39","modified_gmt":"2017-12-03T12:34:39","slug":"azcopy-copy-status-failed-description-412-conditionnotmet-copy-failed-when-reading-the-source","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/azcopy-copy-status-failed-description-412-conditionnotmet-copy-failed-when-reading-the-source","title":{"rendered":"AZcopy :  Copy status: Failed; Description: 412 ConditionNotMet &#8220;Copy failed when reading the source.&#8221;."},"content":{"rendered":"<p>I was trying to copy an Azure VM Hard Drive from a classic storage account to a new storage account , however after shutting down the VM I was getting the error<\/p><p><strong> Copy status: Failed; Description: 412 ConditionNotMet &#8220;Copy failed when reading the source.&#8221;.<\/strong><\/p><p>I contacted Azure support who notified me to use the below<\/p><p>VHD is attached to VM, and then you can refer to the following steps to copy it:<\/p><ol><li>Download and install <a href=\"https:\/\/protect-au.mimecast.com\/s\/1RkNBxHD8Dtg?domain=storageexplorer.com\">\u00a0Microsoft Azure Storage Explorer<\/a>.<\/li><li>Click <strong>Storage accounts<\/strong> on the left pane on Azure Portal&gt; Click on the name of the corresponding storage account&gt;<strong>Keys<\/strong>&gt;Copy the primary key<\/li><li>Open the tool Azure Storage Explorer, and follow the steps below to connect to the target and destination storage accounts<\/li><\/ol><p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-3018 img-responsive\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2017\/12\/azcopy.jpg\" alt=\"\" width=\"908\" height=\"440\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2017\/12\/azcopy.jpg 908w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2017\/12\/azcopy-300x145.jpg 300w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2017\/12\/azcopy-768x372.jpg 768w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><\/p><p>After both storage accounts get connected, you can go find the corresponding vhd file and copy it, and then go to the destination container of the storage account to paste the copied file<\/p>","protected":false},"excerpt":{"rendered":"<p>I was trying to copy an Azure VM Hard Drive from a classic storage account to a new storage account , however after shutting down the VM [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2254,2252,2255,1723,2251,2253,2256],"class_list":["post-3017","post","type-post","status-publish","format-standard","hentry","category-research","tag-412-conditionnotmet","tag-azcopy","tag-classic-to-arm","tag-copy","tag-copy-failed-when-reading-the-source","tag-copy-status","tag-vhd"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=3017"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3017\/revisions"}],"predecessor-version":[{"id":3019,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/3017\/revisions\/3019"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=3017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=3017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=3017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}