The service definition file is an XML file based on the Azure Service Definition Schema and it describes the components of the Cloud Service.
A basic template of a service definition file looks like this:
<ServiceDefinition name="<service-name>" topologyChangeDiscovery="<change-type>" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" upgradeDomainCount="<number-of-upgrade-domains>" schemaVersion=" <version>">
<LoadBalancerProbes>
</LoadBalancerProbes>
<WebRole ...>
</WebRole>
<WorkerRole ...>
</WorkerRole>
<NetworkTrafficRules>
</NetworkTrafficRules>
</ServiceDefinition>
Overall, we find five elements in the Azure Services Definition Schema. The root element (that is, top level element) is <ServiceDefinition> with the mandatory attribute name and the three optional attributes...