WebRole Element (Service Definition Schema)
[This is prerelease documentation and is subject to change in future releases.]

The WebRole element describes a role that accepts external requests via HTTP and/or HTTPS endpoints.

A service may contain zero or more web roles.

XML Syntax

<ServiceDefinition>
  <WebRole name="<name>" enableNativeCodeExecution="true|false">
    <LocalStorage name="<name>" sizeInMb="<n>" />
    <ConfigurationSettings />
    <InputEndpoints />
  </WebRole>
</ServiceDefinition>
Attributes and Elements

The following sections describe attributes, child elements, and parent elements for this element.

Attributes

 

Attribute Type Description

name

string

The name for the web role. The role's name must be unique.

enableNativeCodeExecution

boolean

Set this attribute to true to enable native code execution for the web role.

Child Elements

 

Element Type Description

LocalStorage

LocalStore

The local store for the web role.

ConfigurationSettings

N/A

The collection of configuration settings for the web role.

InputEndpoints

InputEndpoints

The collection of input endpoints for the web role.

Parent Elements

See Also

Concepts

Service Definition Schema


Copyright © 2009 by Microsoft Corporation. All rights reserved.
Page view tracker