Skip to content

Instantly share code, notes, and snippets.

@mvalipour
Created July 25, 2016 19:17
Show Gist options
  • Select an option

  • Save mvalipour/ad8e60c1f64bf687dd32f88c6d944d15 to your computer and use it in GitHub Desktop.

Select an option

Save mvalipour/ad8e60c1f64bf687dd32f88c6d944d15 to your computer and use it in GitHub Desktop.
Enable Custom Load-Balancer Probing on Azure Cloud Service
<?xml version="1.0"?>
<ServiceDefinition name="Cloud" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2015-04.2.6">
<LoadBalancerProbes>
<LoadBalancerProbe name="healthcheck" path="/healthcheck" protocol="http" port="80" intervalInSeconds="30" timeoutInSeconds="61" />
</LoadBalancerProbes>
<WebRole name="Web" vmsize="Large">
<Sites>
<Site name="Web">
<Bindings>
<Binding name="Endpoint1" endpointName="httpIn" />
<Binding name="Endpoint1" endpointName="httpsIn" />
</Bindings>
</Site>
</Sites>
<Endpoints>
<InputEndpoint name="httpIn" protocol="http" port="80" loadBalancerProbe="healthcheck" />
</Endpoints>
</WebRole>
</ServiceDefinition>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment