Jean Paul's Blog

There are 2 types of People in the World, One who Likes SharePoint and..

  • Microsoft MVP

  • MindCracker MVP

  • CodeProject MVP

  • eBook on SharePoint 2010

  • eBook on Design Patterns

  • eBook on Windows Azure

  • NLayers Framework @ CodePlex

  • MSDN Forums

  • .Net vs. Java

    Due to Public Demand

Web Role Detailed

Posted by Jean Paul on October 14, 2011

In this article we can summarize the points on Web Role deployed in previous article.

Virtual Machine Size

The virtual machine size provides the resource capacity of the virtual machine. The parameters varying with virtual machine size are:

  • CPU Speed
  • Memory (RAM)
  • Instance Storage (Hard Disk)
  • I/O Performance

The sizes for virtual machine are:

  • Extra Small
  • Small
  • Medium
  • Large
  • Extra Large

The cost of billing will be varying depending on the virtual machine size.

The ServiceDefinition.csdef file can be used to specify the VM size.

<?xml version=”1.0″ encoding=”utf-8″?>

<ServiceDefinition name=”WebRoleExample” xmlns=””&gt;

<WebRole name=”WebRole1 vmsize=Small>


<Site name=”Web”>


<Binding name=”Endpoint1″ endpointName=”Endpoint1″ />





<InputEndpoint name=”Endpoint1″ protocol=”http” port=”80″ />



<Import moduleName=”Diagnostics” />




Instance Count

The number of instances of the Web Role can be specified using the instance count option. The number of instances will be managed by a Load Balancer automatically by the cloud.

The ServiceConfiguration.cscfg file can be used to specify the instance count.

<?xml version=”1.0″ encoding=”utf-8″?>

<ServiceConfiguration serviceName=”WebRoleExample” xmlns=”; osFamily=”1″ osVersion=”*”>

<Role name=”WebRole1″>

<Instances count=”1″ />


<Setting name=”Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString” value=”UseDevelopmentStorage=true” />




Locating the files

From the solution explorer we can locate the files as shown below:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s