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
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.
<ApplicationInsights> ... <TelemetryModules> <Add Type="Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPulse.QuickPulseTelemetryModule, Microsoft.AI.PerfCounterCollector"> <QuickPulseServiceEndpoint>Custom_QuickPulse_Endpoint_Address</QuickPulseServiceEndpoint> </Add> </TelemetryModules> ... <TelemetrySinks> <Add Name = "default"> <TelemetryChannel> <EndpointAddress>TelemetryChannel_Endpoint_Address</EndpointAddress> </TelemetryChannel> </Add> </TelemetrySinks> ... <ApplicationIdProvider Type="Microsoft.ApplicationInsights.Extensibility.Implementation.ApplicationId.ApplicationInsightsApplicationIdProvider, Microsoft.ApplicationInsights"> <ProfileQueryEndpoint>Profile_Query_Endpoint_address</ProfileQueryEndpoint> </ApplicationIdProvider> ... </ApplicationInsights>
Regions that require endpoint modification
|Azure China||Telemetry Channel||
|Azure China||QuickPulse (Live Metrics)||
|Azure China||Profile Query||
|Azure Government||Telemetry Channel||
|Azure Government||QuickPulse (Live Metrics)||
|Azure Government||Profile Query||
If you currently use the Application Insights REST API which is normally accessed via `api.applicationinsights.io' you will need to use an endpoint that is local to your region:
|Azure China||REST API||
|Azure Government||REST API||
Submit and view feedback for