From 9ee04a73435c31806ac32482cf54635420b8dd88 Mon Sep 17 00:00:00 2001 From: Glen Fu <80932034+gfugy@users.noreply.github.com> Date: Mon, 2 Mar 2026 15:53:38 +0800 Subject: [PATCH 1/2] Enhance ILogger documentation with telemetry key setup Added instructions for updating the telemetry instrumentation key in Dataverse environment. --- .../data-platform/application-insights-ilogger.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/powerapps-docs/developer/data-platform/application-insights-ilogger.md b/powerapps-docs/developer/data-platform/application-insights-ilogger.md index 449fb1cc29..1cf03b2048 100644 --- a/powerapps-docs/developer/data-platform/application-insights-ilogger.md +++ b/powerapps-docs/developer/data-platform/application-insights-ilogger.md @@ -17,7 +17,15 @@ contributors: # Write Telemetry to your Application Insights resource using ILogger > [!IMPORTANT] -> To use this capability, you must first enable the Application Insights integration feature using an administrator account. Ensure that the user enabling the feature has the necessary privileges to modify the Dataverse organization (such as System Administrator role or being a Power Platform/Dynamics 365 admin) and has contributor access to the Application Insights resource. If a user without the necessary permissions enables the integration, telemetry data will not be written to Application Insights. More information: [Analyze model-driven apps and Microsoft Dataverse telemetry with Application Insights](/power-platform/admin/analyze-telemetry)
+> To use this capability, you must first enable the Application Insights integration feature using an administrator account. Ensure that the user enabling the feature has the necessary privileges to modify the Dataverse organization (such as System Administrator role or being a Power Platform/Dynamics 365 admin) and has contributor access to the Application Insights resource. If a user without the necessary permissions enables the integration, telemetry data will not be written to Application Insights. +> +> Copy the Application Insights instrumentation key to update the telemetryinstrumentationkey setting in Dataverse environment for custom telemetry to be captured from ILogger interface. +Steps to populate the Application Insights instrumentation key for the environment: + 1. Retrieve the Instrumentation Key (GUID) from the Application Insights resource. + 2. Run the following command using the PAC CLI: +pac env update-settings --name "telemetryinstrumentationkey" --value "