Deploying A Virtual Machine Using Unmanaged Disk

In the previous article, we deployed a Windows VM using the managed disk. In this article, we are going to see how we can deploy a VM using an unmanaged disk. For demo purpose, I am using a Linux VM instead of Windows here. It is for an easy administration. Microsoft introduced the concept of managed disks as it is difficult to manage different storage account in case of more number of servers. That’s why even when you look at the storage accounts section, you can’t find a storage account in case of a VM running by managed disks because it is managed by them.

It is possible for you to create a storage account during the creation of the VM itself but here, I will create one first and then the VM.

Click on New >> Storage and then select the Storage account.

You have to provide a fully qualified domain name for storage account that lives under Then, we have to select the deployment model which I am selecting Resource Manager, the default one and recommended.

Then, we have Account kind which is of two kinds for storage accounts. We are selecting "General Purpose" which gives us the ability to store what they call BLOBs, a Binary Large Object. Basically, what they say is that a VHD could be a blob, an image could be a blob.
Then, moving on, I am selecting premium storage account here so, that it will provide SSD based disks in this storage account.
And then, storage accounts have redundant replication options, which I am selecting Locally-redundant Storage, which means that we're going to have three copies of data in the data center that we create our storage account in. That is - if we create the storage account in South East Asia and I sort data in it, Microsoft is going to make 3 copies of that on different pieces of physical storage, and that way, if something fails, there's still a backup copy.
We will deep dive into other types in a different article. We can also do encryption at REST and require secure transfers when we're communicating with the storage service via APIs. But, we'll go ahead and leave those turned off for now and I will create a new group called MyStorage deployed to Southeast Asia region.

Click on "Create" and after a few seconds, you will get a notification of completeness. On selecting it, you can view the settings for the same.

If you look over here, you can see no containers. So, when you try to deploy a virtual machine and say, they use this storage account, the system will build a container in here and it'll put the VHDs in there.

Next, we have to create the VM. For that, I am going to New >> Compute and then select Ubuntu Server this time, which has only one difference from the previous article - authentication where we can have either SSH Public Key authentication or Password.

Choose a size according to your requirements and in the third step, select No for Managed Disks which will prompt for selecting the storage account from which you can select the storage account we created.

There is an option for creating a new one right here if we haven’t created earlier. Select it and disable the boot monitoring, keeping the remaining as it was, and complete the final validation. As like a Windows Server, we're not going to download an RDP file for our Linux server instead of using SSH command to SSH in.

In the storage, you can see that a VHDs container has been added which was not there before deploying the Virtual Machine.

And in the VM disk section, you can see it has created an OS disk. You can add additional data disks as per your requirement.