diff --git a/powerapps-docs/developer/data-platform/application-insights-ilogger.md b/powerapps-docs/developer/data-platform/application-insights-ilogger.md index 449fb1cc29..e02c4739e2 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 "[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. 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.