What is ServiceDefinition.csdef file?

 Posted by Rajnilari2015 on 10/11/2016 | Category: Azure Interview questions | Views: 442 | Points: 40
Answer:

This is definition file for the cloud service. This file contains setting like bindings, settings etc.It also contains the information about the EndPoints and the default port number.
<?xml version="1.0" encoding="utf-8"?>

<ServiceDefinition name="AzureCloudService3" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2015-04.2.6">
<WebRole name="WebRole1" 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>
</ServiceDefinition>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response