what is the AI best practice with multiple .net apps

Lance Lyons 86 Reputation points
2023-01-11T16:40:29.5566667+00:00

We are going to start adding Application Insights to a bunch of our web apps (20-30 apps). We have already done this on a few but wanted to get some feed back on the best approach.
Should we do 1 application insights and 1 log analytics workspace per app?

Can apps share log analytic workspaces and does this make querying easier?
Is there any documentation on this exact scenario?
thanks in advance. Lance

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,658 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Stanislav Zhelyazkov 28,426 Reputation points MVP Volunteer Moderator
    2023-01-12T07:34:49.6633333+00:00

    Hi,

    You can have multiple Application Insights instances tied to a single Log Analytics workspace. In general, you should have one Application Insights instance per app. If you have some apps that are tightly coupled together like running on the same instances, communicating between each other (via internal channels and not via public REST APIs for example), etc. in that case might be better to have one Application Insights instance for that set of apps. As Log Analytics and App insights are regional resources you could go with multiple instances of Log Analytics in case you have some regional requirements.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  2. AnuragSingh-MSFT 21,551 Reputation points Moderator
    2023-01-16T08:54:52.38+00:00

    @Lance Lyons In addition to the information shared by Stanislav above, you could also see the following link -

    How many Application Insights resources should I deploy?

    It contains information about when to use a single Application Insights resource and other considerations that should help you make this decision.

    Hope it helps. Please let us know if you have any questions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.