Windows Azure - HDD Size
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 and resize here looks way too much effort to say the less).
Thanks.
Solution 1:
In azure only space really used is billed. For Linux VM, sadly, the whole space is billed. You can verify how much a drive costs you with some tools like IaaS Management Studio (works in the free version).
Solution 2:
In my practise is frist run VM shrink disk with data - i use this script: Get-Volume c | resize-partition -size (40GB -1MB)
And next you can use CloudExplorer
Solutions: http://mijndertstuij.nl/resize-the-root-volume-of-an-azure-vm/
- For shrink disk you must firs click Acquire lease
- Click shrink diks and click button down with GB (if you write in input window this can't work) > click ok
- Click Break lease