When I created my Azure based Sitecore 9 PaaS there were several other services which automatically installed with setup. One of which is Azure Application Insight which cost around 100$ per month extra to me. I want to stop this server but could not find any option for this.

How can I stop Sitecore 9 using this possibly configuration based disable feature. Also if you can provide permanent solution it would be of more help.

1 Answer 1

  1. Locate the "Sitecore.Cloud.ApplicationInsights.config" in your \App-Config\Include\zzz folder, and disable it by adding ".disabled" to the end of the filename.

  2. In your "ConnectionString.config" file found in \App_Config, remove the connection string for the AI instrumentation.

     <add name="appinsights.instrumentationkey"
  3. In your \web.config file, comment out the following entries:

<add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" />

<assemblyIdentity name="Microsoft.ApplicationInsights" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="" newVersion="" />

<trace autoflush="true" indentsize="0">
        <add name="myAppInsightsListener" type="Microsoft.ApplicationInsights.TraceListener.ApplicationInsightsTraceListener, Microsoft.ApplicationInsights.TraceListener" />

Perform these steps on the following server roles: CM, CD

Finally Delete the Application Insight Service in Azure to stop billing. :)

For more information read this : http://integryx.net/post/2018/05/19/sitecore-9-paas-disable-application-insights

  • 2
    You have forgotten to add most important step - deleting the AI service in Azure :) If you won't do this, you would be still billed. Commented May 22, 2018 at 7:24
  • 1
    Yes Peter. Just added that. Thanks for the correction. Commented May 22, 2018 at 7:27
  • 1
    Please note there are many other places where app insights is used for logging.
    – eglasius
    Commented May 22, 2018 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.