Azure Cloud Services Config Role Schema
Role element of the configuration file specifies the number of role instances to deploy for each role in the service, the values of any configuration settings, and the thumbprints for any certificates associated with a role.
For more information about the Azure Service Configuration Schema, see Cloud Service (classic) Configuration Schema. For more information about the Azure Service Definition Schema, see Cloud Service (classic) Definition Schema.
The following example shows the
Role element and its child elements.
<ServiceConfiguration> <Role name="<role-name>" vmName="<vm-name>"> <Instances count="<number-of-instances>"/> <ConfigurationSettings> <Setting name="<setting-name>" value="<setting-value>" /> </ConfigurationSettings> <Certificates> <Certificate name="<certificate-name>" thumbprint="<certificate-thumbprint>" thumbprintAlgorithm="<algorithm>"/> </Certificates> </Role> </ServiceConfiguration>
The following table describes the attributes for the
|name||Required. Specifies the name of the role. The name must match the name provided for the role in the service definition file.|
|vmName||Optional. Specifies the DNS name for a Virtual Machine. The name must be 10 characters or less.|
The following table describes the child elements of the
|Instances||Required. Specifies the number of instances to deploy for the role. The number of instances is defined by an integer for the
|Setting||Optional. Specifies a setting name and value in a collection of settings for a role. The setting name is defined by a string for the
|Certificate||Optional. Specifies the name, thumbprint, and algorithm of a service certificate that is to be associated with the role. The certificate name is defined by a string for the