Reputation: 1083
This question is related to Azure VM Role. As I read in some blogs, to host a VM Role we need to create a Virtual Machine image (VHD) with Windows Server 2008 r2 installed in it.
1.) So what will be the size of the VHD file (roughly)?
2.) I guess it will be in GBs for sure. So can it be avoided with any other methods so that we can create it on fly, I mean in the cloud environment itself. So that uploading such a huge file is avoided.
Upvotes: 3
Views: 719
Reputation: 20571
I will add more info to what David provided. Please check the link below title "Why Would I Use a VM Role in My Application?" because you must be sure why you go down to "VM Role" Path:
http://msdn.microsoft.com/en-us/library/windowsazure/gg671911.aspx
Next to answer exactly your question:
1) the Size of VHD is defined by the type of VM Role Instance you will use. The maximum VHD logical size support is 64GB. Depend on your VM Role Instance type "Extra Small, Small, Medium, Large and Extra Large" you can use 15GB with Extra Small, 35GB with Small and 64GB with Medium, Large and Extra Large.
2) As of now VM Role is still in BETA and you must have to create a VHD locally using Windows Server Hyper-V and must have Windows Server 2008 installed on it.
You can follow step by step Hands on Lab below if you wish to dive into:
http://msdn.microsoft.com/en-us/wazplatformtrainingcourse_vmrolelab_topic2#_Toc308775050
Upvotes: 6
Reputation: 71031
This is how it works today: You create your VHD in Hyper-V locally, then upload the image, which is subsequently used for VM Role deployment and scaling. It's hard to predict the actual VHD size, as this largely depends on what you're installing on your VM. I'm sure you can easily create images upward of 10+ GB.
Once you have your image uploaded, you don't need to re-upload the entire image if, say, you patch your VM. You can upload a differencing disk, which would be considerably smaller.
One thing to remember: Any change you make to the VM at runtime in Windows Azure will be non-persistent. For instance, if the VM crashes and has to be rebuilt, it is rebuilt from your originally-uploaded VHD.
Now... having said all that: You should carefully consider using a VM Role over Web and Worker roles (which are essentially Windows Server 2008 with and without IIS running, respectively). With startup tasks that may run with elevated permissions, you can install nearly anything that you'd normally install on Windows Server. There are three primary reasons to go with VM Role:
If you can avoid VM Role, you can avoid the VM upload and subsequent VM maintenance, and outsource OS management to Windows Azure.
Upvotes: 2