locked
Share iKey between apps/sites? RRS feed

  • Question

  • Hi there, is it possible to share one application insights key/link between multiple sites/apps and separate them in the AI dashboard?

    My requirement is to have multiple sites in azure (that all use dotnet core ILogger) to log to the same location and then have one dashboard to separate the sites and query the data.

    Is this possible?

    Thanks

    Friday, February 22, 2019 5:31 AM

Answers

  • You can use a single Application Insights resource for multiple components/apps/sites.  When making this decision, Oleg Ananiev (from the Application Insights product group) has listed 3 points to consider in a scenario that uses site A and site B:

    • Visibility scope: Putting both site A and B into a single resource will allow you to see the totals for both, but in order to view the sites separately you'll have to apply filters (which may or may not be what you are after).
    • Access control:  Is there anyone with access to one site that shouldn't have access to the other?
    • Lifecycle:  You may want to match your telemetry containers with their lifecycle.

    Note: The 4th point was omitted as the pricing calculator shows that Application Insights now bills based on the volume of telemetry data.

    Separating telemetry is actually a common task as you wouldn't want to mix up the telemetry between different versions of a web app (think development, test, and production).  We have documentation that will walk you through this process which you can find here:

    https://docs.microsoft.com/en-us/azure/azure-monitor/app/separate-resources

    Additionally, there is an example which may be valuable for you:

    https://docs.microsoft.com/en-us/azure/azure-monitor/app/cloudservices






    Friday, February 22, 2019 11:46 PM