Search code examples
azurewin-universal-appazure-application-insightswindows-dev-center

How to use the same Instrumentation Key in azure and dev center


Currently I have two Instrumentations Key, one in the Azure Application Insights, and another in the Windows Dev Center.

My ApplicationInsights.config has the Azure key so I don't see analytics in the dev center.

Is there anyway to change the Windows Dev Center key to the same as Azure, or vice versa?

Thanks


Solution

  • I managed to resolve this issue. My ApplicationInsights.config was badly configured, it was missing the xmlns. It should be like this:

    <?xml version="1.0" encoding="utf-8" ?>
    <ApplicationInsights xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">
        <InstrumentationKey> ...key here... </InstrumentationKey>
    </ApplicationInsights>
    

    Instead, I had it like this:

    <?xml version="1.0" encoding="utf-8" ?>
    <ApplicationInsights>
        <InstrumentationKey> ...key here... </InstrumentationKey>
    </ApplicationInsights>