Significance of Application Insights csproj file modifications : <p>When I use the "Add Application Insights Telemetry..." menu option available from right-clicking an ASP.NET application in the Solution Explorer in Visual Studio to point an application to an existing Application Insights resource, the resulting file changes include the addition of two items to the <code>.csproj</code> file:</p>

<pre><code>&lt;ApplicationInsightsResourceId&gt;/subscriptions/$guid/resourcegroups/$rgname&gt;/providers/microsoft.insights/components/$name&lt;/ApplicationInsightsResourceId&gt;
&lt;ApplicationInsightsAnnotationResourceId&gt;/subscriptions/$guid/resourcegroups/$rgname/providers/microsoft.insights/components/$name&lt;/ApplicationInsightsAnnotationResourceId&gt;
</code></pre>

<p>I have elided some information - <code>$guid</code> is the Azure subscription GUID and  <code>$rgname</code> and <code>$name</code> are the names given to  the Application Insights resource group and resource respectively.</p>

<ol>
<li><p>What is the difference between each element? They seem to have the same information.</p></li>
<li><p>If I want to send telemetry to different Application Insights resources in difference environments, the documentation tells me I need to set the instrumentation key for each environment in code - which is fine - but what about these settings? Are they used for anything other than driving the context-sensitive menu options in Visual Studio? Do I need to worry about them in other environments?</p></li>
</ol>
