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 "" + +> More information: [Analyze model-driven apps and Microsoft Dataverse telemetry with Application Insights](/power-platform/admin/analyze-telemetry)

> There's presently no support of `ILogger` within a plug-in profiling/debug session of the Plug-in Registration tool or the Power Platform Tools extension for Visual Studio. When you enable Application Insights for your organization, any plug-ins written using the [ILogger Interface](/dotnet/api/microsoft.xrm.sdk.plugintelemetry.ilogger) provided in the SDK for .NET assemblies write telemetry to your Application Insights resource. From 2383e319088ab303f1f7a99575ba907123c972a2 Mon Sep 17 00:00:00 2001 From: Glen Fu <80932034+gfugy@users.noreply.github.com> Date: Mon, 2 Mar 2026 16:02:49 +0800 Subject: [PATCH 2/2] Fix command syntax for telemetry instrumentation key Updated the command syntax for setting the telemetry instrumentation key. --- .../developer/data-platform/application-insights-ilogger.md | 2 +- 1 file changed, 1 insertion(+), 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 1cf03b2048..e02c4739e2 100644 --- a/powerapps-docs/developer/data-platform/application-insights-ilogger.md +++ b/powerapps-docs/developer/data-platform/application-insights-ilogger.md @@ -23,7 +23,7 @@ contributors: 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 "" +pac env update-settings --name "telemetryinstrumentationkey" --value "[Application Insights Instrumentation Key GUID]" > More information: [Analyze model-driven apps and Microsoft Dataverse telemetry with Application Insights](/power-platform/admin/analyze-telemetry)

> There's presently no support of `ILogger` within a plug-in profiling/debug session of the Plug-in Registration tool or the Power Platform Tools extension for Visual Studio.