You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/asp-net-core.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -227,11 +227,12 @@ while (true)
227
227
228
228
The preceding sample is for a console app, but the same code can be used in any .NET applications. If any other telemetry modules are enabled to autocollect telemetry, it's important to ensure that the same configuration used for initializing those modules is used for the Live Metrics module.
229
229
230
-
#### Secure the control channel
230
+
#### Add an API key to configuration
231
231
232
-
##### Add an API key to configuration
232
+
If you set up an authenticated channel by configuring a secret API key as explained in the "Legacy option" section in [Live metrics: Monitor and diagnose with 1-second latency](./live-stream.md#legacy-option-create-an-api-key), you can add it to configuration.
233
233
234
-
You can add an API key to configuration for ASP.NET, ASP.NET Core, WorkerService, and Azure Functions apps.
234
+
> [!NOTE]
235
+
> Setting up an authenticated channel by configuring a secret API key is no longer recommended. Instead, we recommend securing the live metrics channel by using [Microsoft Entra authentication](./azure-ad-authentication.md#configure-and-enable-azure-ad-based-authentication).
235
236
236
237
In the *Program.cs* file, add the following namespace:
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/asp-net.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -433,11 +433,12 @@ namespace LiveMetricsDemo
433
433
434
434
The preceding sample is for a console app, but the same code can be used in any .NET applications. If any other telemetry modules are enabled to autocollect telemetry, it's important to ensure that the same configuration used for initializing those modules is used for the Live Metrics module.
435
435
436
-
### Secure the control channel
436
+
### Add an API key to configuration
437
437
438
-
#### Add an API key to configuration
438
+
If you set up an authenticated channel by configuring a secret API key as explained in the "Legacy option" section in [Live metrics: Monitor and diagnose with 1-second latency](./live-stream.md#legacy-option-create-an-api-key), you can add it to configuration.
439
439
440
-
You can add an API key to configuration for ASP.NET, ASP.NET Core, WorkerService, and Azure Functions apps.
440
+
> [!NOTE]
441
+
> Setting up an authenticated channel by configuring a secret API key is no longer recommended. Instead, we recommend securing the live metrics channel by using [Microsoft Entra authentication](./azure-ad-authentication.md#configure-and-enable-azure-ad-based-authentication).
441
442
442
443
In the *applicationinsights.config* file, add `AuthenticationApiKey` to `QuickPulseTelemetryModule`:
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/live-stream.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,10 +46,10 @@ Live metrics is currently supported for ASP.NET, ASP.NET Core, Azure Functions,
46
46
*[Node.js](opentelemetry-enable.md?tabs=nodejs): Live metrics is enabled by default.
47
47
*[Python](opentelemetry-enable.md?tabs=python): Live metrics is enabled by default.
48
48
49
-
Using Classic:
49
+
Using Classic API:
50
50
51
-
*[ASP.NET](./asp-net.md): Live metrics is enabled by default.
52
-
*[ASP.NET Core](./asp-net-core.md): Live metrics is enabled by default.
51
+
*[ASP.NET](./asp-net.md): Live metrics is enabled by default but can also be enabled manually using code, see [Configure monitoring for ASP.NET with Azure Application Insights](./asp-net.md#enable-live-metrics-by-using-code-for-any-.net-application).
52
+
*[ASP.NET Core](./asp-net-core.md): Live metrics is enabled by default but can also be enabled manually using code, see [Application Insights for ASP.NET Core applications](./asp-net-core.md#enable-live-metrics-by-using-code-for-any-.net-application).
53
53
*[.NET/.NET Core Console/Worker](./worker-service.md): Live metrics is enabled by default.
54
54
*[.NET Applications: Enable using code](#enable-live-metrics-by-using-code-for-any-net-application).
55
55
*[Node.js](./nodejs.md#live-metrics)
@@ -114,7 +114,7 @@ If you want to monitor a particular server role instance, you can filter by serv
114
114
Live metrics custom filters allow you to control which of your application's telemetry is streamed to the live metrics view in the Azure portal. The filters criteria are sent to the apps that are instrumented with the Application Insights SDK. The filter value could potentially contain sensitive information, such as the customer ID. To keep this value secured and prevent potential disclosure to unauthorized applications, you have two options:
115
115
116
116
-**Recommended:** Secure the live metrics channel by using [Microsoft Entra authentication](./azure-ad-authentication.md#configure-and-enable-azure-ad-based-authentication).
117
-
-**Legacy (no longer recommended):** Set up an authenticated channel by configuring a secret API key as explained in the "Legacy option" section.
117
+
-**Legacy (no longer recommended):** Set up an authenticated channel by configuring a secret API key as explained in the "Legacy option" section below.
118
118
119
119
> [!NOTE]
120
120
> On September 30, 2025, API keys used to stream live metrics telemetry into Application Insights will be retired. After that date, applications that use API keys won't be able to send live metrics data to your Application Insights resource. Authenticated telemetry ingestion for live metrics streaming to Application Insights will need to be done with [Microsoft Entra authentication for Application Insights](./azure-ad-authentication.md).
@@ -138,14 +138,12 @@ It's possible to try custom filters without having to set up an authenticated ch
138
138
139
139
### Add an API key to configuration
140
140
141
-
You can add an API key to configuration for ASP.NET, ASP.NET Core, WorkerService, and Azure Functions apps.
141
+
You can add an API key to configuration for ASP.NET, ASP.NET Core, WorkerService, and Azure Functions apps:
If you set up an authenticated channel by configuring a secret API key as explained in the "Legacy option" section in [Live metrics: Monitor and diagnose with 1-second latency](./live-stream.md#legacy-option-create-an-api-key), you can add it to configuration.
184
+
185
+
> [!NOTE]
186
+
> Setting up an authenticated channel by configuring a secret API key is no longer recommended. Instead, we recommend securing the live metrics channel by using [Microsoft Entra authentication](./azure-ad-authentication.md#configure-and-enable-azure-ad-based-authentication).
184
187
185
188
For Azure Functions apps (v2), you can secure the channel with an API key by using an environment variable.
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/worker-service.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -315,11 +315,12 @@ The following sections list the full telemetry automatically collected by Applic
315
315
316
316
[Live Metrics](./live-stream.md) can be used to quickly verify if Application Insights monitoring is configured correctly. Although it might take a few minutes before telemetry appears in the portal and analytics, Live Metrics shows CPU usage of the running process in near real time. It can also show other telemetry like Requests, Dependencies, and Traces.
317
317
318
-
#### Secure the control channel
318
+
#### Add an API key to configuration
319
319
320
-
##### Add an API key to configuration
320
+
If you set up an authenticated channel by configuring a secret API key as explained in the "Legacy option" section in [Live metrics: Monitor and diagnose with 1-second latency](./live-stream.md#legacy-option-create-an-api-key), you can add it to configuration.
321
321
322
-
You can add an API key to configuration for ASP.NET, ASP.NET Core, WorkerService, and Azure Functions apps.
322
+
> [!NOTE]
323
+
> Setting up an authenticated channel by configuring a secret API key is no longer recommended. Instead, we recommend securing the live metrics channel by using [Microsoft Entra authentication](./azure-ad-authentication.md#configure-and-enable-azure-ad-based-authentication).
0 commit comments