Configure Sizes for Cloud Services
Updated: October 24, 2014
When you create your service model, you can specify the size to which to deploy an instance of your role, depending on its resource requirements. The size of the role determines the number of CPU cores, the memory capacity, and the local file system size that is allocated to a running instance.
For detailed information about the available sizes and options for Virtual Machines on Windows Azure, see Virtual Machine and Cloud Service Sizes for Azure.
To specify the virtual machine size for your role, edit your service definition file, and set the vmsize attribute of the WebRole, WorkerRole, or Role element to the size that you desire. For more information, see Azure Service Definition Schema (.csdef File).
<WebRole name="WebRole1" vmsize="Small"> … </WebRole>
|If you are using Windows Azure Tools for Microsoft Visual Studio, you can also set the virtual machine size in the Properties pages for the role.|
|The billing rate for a virtual machine depends on its size. To minimize expenses, use a virtual machine size that is exactly as large as you need and increase its size later on, if required. For information on billing rates for virtual machines, see the Windows Azure Pricing Calculator.|