Skip to content

Instantly share code, notes, and snippets.

@ivakhnov
Created February 24, 2020 11:02
Show Gist options
  • Select an option

  • Save ivakhnov/69c0918eb38bd62602dcda1a49822785 to your computer and use it in GitHub Desktop.

Select an option

Save ivakhnov/69c0918eb38bd62602dcda1a49822785 to your computer and use it in GitHub Desktop.
[Identify WebApp behind the TrafficManager] Add this file to the site/wwwroot folder on all the distributed Azure WebApps behind a TrafficManager pointed by delivery.xxx.com. Then, target the delivery.xxx.com/dns.aspx in order to identify which of the WebApps you are targeting because of the TM. #AzureWebApp #TrafficManager #Distributed #DNS
<% @ Page Language="C#" %>
<html>
<head>
<title>DNS test</title>
</head>
<body>
<pre>
<%
Response.Write(Request.ServerVariables["HTTP_X_SITE_DEPLOYMENT_ID"]);
%>
</pre>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment