Skip to content

Instantly share code, notes, and snippets.

@GeorgeTsiokos
Created December 4, 2017 19:30
Show Gist options
  • Save GeorgeTsiokos/f373ecad8ee5e567b04383d0c2f2258f to your computer and use it in GitHub Desktop.
Save GeorgeTsiokos/f373ecad8ee5e567b04383d0c2f2258f to your computer and use it in GitHub Desktop.
CD AI template to replace AuthenticationApiKey & InstrumentationKey
<?xml version="1.0" encoding="utf-8" ?>
<ApplicationInsights xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform" xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
<InstrumentationKey xdt:Transform="Replace">#{InstrumentationKey}</InstrumentationKey>
<TelemetryModules>
<Add Locator="Condition(@Type=Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector)">
<AuthenticationApiKey xdt:Transform="Replace">#{AuthenticationApiKey}</AuthenticationApiKey>
</Add>
</TelemetryModules>
</ApplicationInsights>
@GeorgeTsiokos
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment