Enabling Application Insights on a SOLR App Service

January 3, 2022

I had issues configuring Application Insights on a SOLR App Service until I followed these articles:

Instead of enabling Application Insights from Azure Portal, I did the following:

  1. The Application Insights Java agent was downloaded from Microsoft (see link above)
  2. A new applicationinsights.json file was created with the appropriate key and role name
  3. This json file and the agent were added to the dist folder on the SOLR service
  4. The /bin/solr.cmd file was updated on line 917 with the following:
    set SOLR_OPTS=%SOLR_OPTS% -javaagent:"%SOLR_TIP%\dist\applicationinsights-agent-3.2.7.jar"
  5. The app service was restarted