I have the following rewrite code in my web.config (MVC 5) which is apparently causing the traffic manager to register "degraded" since it gets the rewrite (301 status, I suspect). I have set the traffic manager to monitor HTTPS. What else do I need to do?
<system.webServer>
<!-- http://blog.smarx.com/posts/redirecting-to-https-in-windows-azure-two-methods -->
<!--<rewrite>
<rules>
<rule name="Redirect to HTTPS" stopProcessing="false">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
<add input="{URL}" pattern="/$" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Redirect" url="https://{SERVER_NAME}/{R:1}" redirectType="SeeOther" />
</rule>
</rules>
</rewrite>-->
<validation validateIntegratedModeConfiguration="false" />
UPDATE This may work in my home controller:
/// <summary>
/// For Azure Traffic Manager Monitoring /Home/TrafficManagerProbe
/// </summary>
/// <returns></returns>
[HttpGet]
[AllowAnonymous]
public HttpResponseMessage TrafficManagerProbe()
{
return new HttpResponseMessage(HttpStatusCode.OK);
}