.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> Azure >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Azure Part 7: Web Role Detailed

Posted By:Jean Paul       Posted Date: October 12, 2011    Points: 200    Category: Azure    URL: http://www.dotnetspark.com  

Web Role Detailed
 

Web Role Detailed 

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="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition">

  <WebRole name="WebRole1" vmsize="Small">

    <Sites>

      <Site name="Web">

        <Bindings>

          <Binding name="Endpoint1" endpointName="Endpoint1" />

        Bindings>

      Site>

    Sites>

    <Endpoints>

      <InputEndpoint name="Endpoint1" protocol="http" port="80" />

    Endpoints>

    <Imports>

      <Import moduleName="Diagnostics" />

    Imports>

  WebRole>

ServiceDefinition>

 

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="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="1" osVersion="*">

  <Role name="WebRole1">

    <Instances count="1" />

    <ConfigurationSettings>

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

    ConfigurationSettings>

  Role>

ServiceConfiguration>

 

Locating the files 

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

 


 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend