Skip to content

Commit 6b2a6a0

Browse files
author
Kai Nawroth
committed
Making adjustments
1 parent a79167e commit 6b2a6a0

File tree

5 files changed

+26
-22
lines changed

5 files changed

+26
-22
lines changed

articles/azure-monitor/app/asp-net-core.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,12 @@ while (true)
227227

228228
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.
229229

230-
#### Secure the control channel
230+
#### Add an API key to configuration
231231

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.
233233

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).
235236
236237
In the *Program.cs* file, add the following namespace:
237238

articles/azure-monitor/app/asp-net.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,11 +433,12 @@ namespace LiveMetricsDemo
433433

434434
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.
435435

436-
### Secure the control channel
436+
### Add an API key to configuration
437437

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.
439439

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).
441442
442443
In the *applicationinsights.config* file, add `AuthenticationApiKey` to `QuickPulseTelemetryModule`:
443444

articles/azure-monitor/app/live-stream.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ Live metrics is currently supported for ASP.NET, ASP.NET Core, Azure Functions,
4646
* [Node.js](opentelemetry-enable.md?tabs=nodejs): Live metrics is enabled by default.
4747
* [Python](opentelemetry-enable.md?tabs=python): Live metrics is enabled by default.
4848

49-
Using Classic:
49+
Using Classic API:
5050

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).
5353
* [.NET/.NET Core Console/Worker](./worker-service.md): Live metrics is enabled by default.
5454
* [.NET Applications: Enable using code](#enable-live-metrics-by-using-code-for-any-net-application).
5555
* [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
114114
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:
115115

116116
- **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.
118118

119119
> [!NOTE]
120120
> 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
138138

139139
### Add an API key to configuration
140140

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:
142142

143-
#### Instructions
144-
145-
[.NET Core]()
146-
[.NET Framework]()
147-
[WorkerService]()
148-
[Azure Functions apps]()
143+
- [.NET Core](./asp-net-core.md#add-an-api-key-to-configuration)
144+
- [.NET Framework](./asp-net.md#add-an-api-key-to-configuration)
145+
- [WorkerService]()
146+
- [Azure Functions apps]()
149147

150148
## Supported features table
151149

articles/azure-monitor/app/monitor-functions.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,12 @@ def main(req: func.HttpRequest, context) -> func.HttpResponse:
178178

179179
## Live Metrics
180180

181-
### Secure the control channel
181+
### Add an API key to configuration
182182

183-
#### Add an API key to configuration
183+
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).
184187
185188
For Azure Functions apps (v2), you can secure the channel with an API key by using an environment variable.
186189

articles/azure-monitor/app/worker-service.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,12 @@ The following sections list the full telemetry automatically collected by Applic
315315

316316
[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.
317317

318-
#### Secure the control channel
318+
#### Add an API key to configuration
319319

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.
321321

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).
323324

324325
Add the following namespace:
325326

0 commit comments

Comments
 (0)