Application Insights overriding default endpoints


Endpoint modification is not recommended. Transition to connection strings to simplify configuration and eliminate the need for endpoint modification.

To send data from Application Insights to certain regions, you'll need to override the default endpoint addresses. Each SDK requires slightly different modifications, all of which are described in this article. These changes require adjusting the sample code and replacing the placeholder values for QuickPulse_Endpoint_Address, TelemetryChannel_Endpoint_Address, and Profile_Query_Endpoint_address with the actual endpoint addresses for your specific region. The end of this article contains links to the endpoint addresses for regions where this configuration is required.


On March 31, 2025, support for instrumentation key ingestion will end. Instrumentation key ingestion will continue to work, but we'll no longer provide updates or support for the feature. Transition to connection strings to take advantage of new capabilities.

SDK code changes


The applicationinsights.config file is automatically overwritten anytime a SDK upgrade is performed. After performing an SDK upgrade be sure to re-enter the region specific endpoint values.

    <Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector">
    <Add Name = "default">
  <ApplicationIdProvider Type="Microsoft.ApplicationInsights.Extensibility.Implementation.ApplicationId.ApplicationInsightsApplicationIdProvider, Microsoft.ApplicationInsights">

Regions that require endpoint modification

Currently the only regions that require endpoint modifications are Azure Government and Azure China.

Region Endpoint Name Value
Azure China Telemetry Channel
Azure China QuickPulse (Live Metrics)
Azure China Profile Query{0}/appId
Azure Government Telemetry Channel
Azure Government QuickPulse (Live Metrics)
Azure Government Profile Query{0}/appId

If you currently use the Application Insights REST API which is normally accessed via `' you will need to use an endpoint that is local to your region:

Region Endpoint Name Value
Azure China REST API
Azure Government REST API

Next steps