Windows Azure - HDD Size

azure, azure-virtual-machine

Solution

Is it true that MSFT will charge me for the unused space?

Not true. This is because Virtual Machines are essentially `Page Blobs` and page blobs are charged based on the occupied bytes instead of total size. So even if a 130 GB disk is created for you and let's say you fill it with 30 GB of data, you'll only be charged for 30 GB instead of 130 GB. Please note that for block blobs you're charged for the size of the blob even if it's empty. You can read more about blobs here: http://msdn.microsoft.com/en-us/library/windowsazure/ee691964.aspx.

Is there a way to create the machine the size I want?

Currently no, but given that you're not charged for the unused space I don't see any reason why you would want to do that.

If there is no way to create the machine in the size I want, how to resize?

Page blobs are resizable. Do take a look at this blog post on how to resize a page blob (and thus a VM image): http://blog.maartenballiauw.be/post/2013/01/07/Tales-from-the-trenches-resizing-a-Windows-Azure-virtual-disk-the-smooth-way.aspx

Problem

I am playing with Windows Azure to create an small VM to host a service that almost doesn't take any space. Windows Azure creates a default 130gb disk, with about 100gb free. That's way too much. I do not need that much space. I understand that MSFT will charge the storage (ie: the 130gb), so I would like to create the VM smaller (probably 30 or 40gb). - Is it true that MSFT will charge me for the unused space? - Is there a way to create the machine the size I want? - If there is no way to create the machine in the size I want, how to resize? (the option to download the .vhd to my computer, resize locally and upload looks way too much effort to say the less).

Original source