Skip to content

Configure Application Insights

Configure Application Insights

Application Insights collects telemetry from App Store for Intune: logs, traces, requests, and exceptions. You view that telemetry in the Azure portal. App Store needs only the Application Insights connection string.

Store Health in the portal doesn’t use Application Insights. Its figures come from the App Store database, and none of its checks use Application Insights, so Store Health shows the same information whether or not Application Insights is configured.

The APPLICATIONINSIGHTS_CONNECTION_STRING application setting turns on telemetry collection. If you deployed App Store with the deployment template, the template already set it.

To check the setting, or to set it yourself:

  1. In the Azure portal, go to your Resource Group.
  2. Select the Application Insights resource (for example, ai-apprequest-prod).
  3. On the Overview page, copy the Connection String (select the copy icon).
  4. Go to your App Service > Settings > Environment variables (Configuration > Application settings in older versions of the portal).
  5. Add or check the setting:
    • Name: APPLICATIONINSIGHTS_CONNECTION_STRING
    • Value: The connection string you copied (it starts with InstrumentationKey=)
  6. Select Apply, and then select Confirm (Save and Continue in older versions of the portal). Saving an application setting restarts the app automatically.
  1. Sign in to App Store and open a few pages.
  2. In the Azure portal, open the Application Insights resource, and then select Investigate > Search (Transaction search in older versions of the portal). After a few minutes, the requests from step 1 are listed.
  3. If nothing is listed after 10 minutes, check that APPLICATIONINSIGHTS_CONNECTION_STRING is set to this resource’s connection string, and that the change was saved.

For more help, see Troubleshooting.

  • Read the Admin Guide to learn how to configure the portal through the web UI
  • Configure Conditional Access policies for enhanced security
  • Set up Azure Monitor alerts on the Application Insights resource
  • Customize the UI to match your organization’s branding