This article is a part of a series of articles related to one of the Azure Compute options, “Cloud Services”.
- Azure Cloud Service Introduction
- Azure Cloud Services - Create Hello World Cloud Service Using Visual Studio
- Azure Cloud Service Examine Files
- Azure Cloud Service – Add existing Web Application to Cloud Service
- Azure Cloud Service – Compute Emulator
- Azure Cloud Service - Create Package using Visual Studio
- Azure Cloud Service – Create a new Cloud Service using Azure Management Portal
- Azure Cloud Service – Deploy Cloud Service using Azure Management Portal
- Azure Cloud Service – Create Staging Slot using Azure Management Portal
- Azure Cloud Service – VIP Swap using Azure Management Portal
- Azure Cloud Service – Delete Slot using Azure Management Portal.
- Azure Cloud Service – Scale up Instance Size
- Azure Cloud Service – Scale Out Instances using Visual Studio
- Azure Cloud Service – Enable Remote Desktop using Visual Studio
- Roles
- As we have created an empty Azure Cloud Service Project, we have an empty “Roles” folder. In general, this folder contains all the codebase related to the Web Roles and the Worker Roles.
- XML Files
- ServiceConfiguration.Cloud.cscfg
- ServiceConfiguration.Local.cscfg
- ServiceDefinition.csdef
Let’s examine each of the above XML files individually.
ServiceDefinition.csdef
This file is called Service definition and contains all the details about the Cloud Service. It contains the details of Web Role(s) and Worker Role(s). This file defines the service model of the application. Based on the information provided in this file, the App Fabric Controller creates everything required for the application.
- The size of the Virtual Machine instance where the roles are hosted.
- The endpoints information (We will learn more about these endpoints in upcoming articles).
- Traffic rules (We will learn more about these in upcoming articles).
- Other configuration settings, like connection strings etc.
Below are the default settings that are created when the Azure Cloud Service project is created.
- <?xml version="1.0" encoding="utf-8"?>
- <ServiceDefinition name="HelloWorldCloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2015-04.2.6">
- <WebRole name="FrontEnd.Web" vmsize="Small">
- <Sites>
- <Site name="Web">
- <Bindings>
- <Binding name="Endpoint1" endpointName="Endpoint1" /> </Bindings>
- </Site>
- </Sites>
- <ConfigurationSettings>
- <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" /> </ConfigurationSettings>
- <Endpoints>
- <InputEndpoint name="Endpoint1" protocol="http" port="80" /> </Endpoints>
- </WebRole>
- <WorkerRole name="WorkerRole1" vmsize="Small">
- <ConfigurationSettings>
- <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" /> </ConfigurationSettings>
- </WorkerRole>
- </ServiceDefinition>

Prasanna MuraliPosted Sep 5, 2016, 10:59 AM
Nice post......
Vignesh ManiPosted Sep 4, 2016, 5:05 PM
Good One.
Praveen SreeramPosted Sep 4, 2016, 12:00 AM
Thanks Shamim Uddin
Shamim UddinPosted Sep 3, 2016, 5:03 AM
Nice