{"id":20441,"date":"2017-09-08T09:00:55","date_gmt":"2017-09-08T08:00:55","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=20441"},"modified":"2017-09-08T09:28:15","modified_gmt":"2017-09-08T08:28:15","slug":"create-an-azure-managed-disk-from-a-vhd-blob","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=20441","title":{"rendered":"Create an Azure Managed Disk from a VHD Blob"},"content":{"rendered":"<p>This post will show you how to create a managed disk from a VHD blob file, such as one you\u2019ve uploaded or restored from a virtual machine backup. In my example, I have restored the virtual hard disks of an Azure VM to a storage account called aidanfinnrestore. I am going to create a new managed disk from the VHD blob, and (in another post) create a new VM from the managed disk that I am creating in this post.<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2017\/09\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin-right: auto; margin-left: auto; float: none; display: block;\" title=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2017\/09\/image_thumb-5.png\" alt=\"image\" width=\"600\" height=\"120\" border=\"0\" \/><\/a><\/p>\n<p>Open the Azure Portal, and go to Disks in the navigation bar on the left \u2013 this is where all managed disks are listed. Click + Add. A Create Manage Disk blade appears. Enter the following information:<\/p>\n<ul>\n<li><strong>Name<\/strong>: Give the new managed disk a name. My naming standard names the disk after the VM with a suffix to denote a role. In my example, it\u2019s an OS disk.<\/li>\n<li><strong>Subscription<\/strong>: Select the subscription in your tenant. Note that you must create the managed disk in the same subscription as the storage account that contains the blob \u2013 you can always move the disk to a different subscription later.<\/li>\n<li><strong>Resource Group<\/strong>: Restore the disk to a new or existing resource group \u2013 typically this is where the virtual machine will be.<\/li>\n<li><strong>Location<\/strong>: Pick the region of the desired VM, which must also match the storage account.<\/li>\n<li><strong>Account Type<\/strong>: What kind of managed disk do you want \u2013 Standard (HDD) or Premium (SSD). You can change this later, one of the nice features of managed disks.<\/li>\n<li><strong>Source Type<\/strong>: I have selected Storage Blob \u2013 this is how the restored (or uploaded) VHD is stored.<\/li>\n<li><strong>Source Blob<\/strong>: Click browse, and navigate to &amp; select the VHD blob that was restored\/uploaded.<\/li>\n<li><strong>OS Type<\/strong>: If this is a data disk then select either Windows or Linux, depending on the guest OS in the VHD.<\/li>\n<li><strong>Size<\/strong>: To make like easy, select the size of the existing blob. I restored a managed disk to a blob, so I went with the original size of 128 GiB.<\/li>\n<\/ul>\n<p style=\"text-align: center;\"><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2017\/09\/CreateManagedDiskFromBlob.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-20457\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2017\/09\/CreateManagedDiskFromBlob-300x261.png\" alt=\"\" width=\"600\" height=\"523\" srcset=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2017\/09\/CreateManagedDiskFromBlob-300x261.png 300w, https:\/\/aidanfinn.com\/wp-content\/uploads\/2017\/09\/CreateManagedDiskFromBlob-768x669.png 768w, https:\/\/aidanfinn.com\/wp-content\/uploads\/2017\/09\/CreateManagedDiskFromBlob.png 853w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/a><\/p>\n<p>Once you\u2019re happy with all the settings, click Create. In my case, with a 128 GiB VHD, the creation just around 30 seconds:<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2017\/09\/image-7.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border: 0px currentcolor; margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;\" title=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2017\/09\/image_thumb-7.png\" alt=\"image\" width=\"600\" height=\"135\" border=\"0\" \/><\/a><\/p>\n<p>Now you can either create a VM from the disk or attach it as a data disk to an existing VM in the Azure Portal \u2013 life is easy with managed disks!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post will show you how to create a managed disk from a VHD blob file, such as one you\u2019ve uploaded or restored from a virtual machine backup. In my example, I have restored the virtual hard disks of an Azure VM to a storage account called aidanfinnrestore. I am going to create a new &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=20441\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Create an Azure Managed Disk from a VHD Blob&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":18412,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[5],"tags":[170,148,55,164,99],"class_list":["post-20441","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","tag-azure","tag-azure-backup","tag-backup","tag-managed-disks","tag-storage"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/aidanfinn.com\/wp-content\/uploads\/2015\/06\/unita-disco-rigido-arch-01r1.png","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/20441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20441"}],"version-history":[{"count":3,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/20441\/revisions"}],"predecessor-version":[{"id":20458,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/20441\/revisions\/20458"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/media\/18412"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}