Monitor Canvas App with Application Insights | Microsoft Power Platform Developer Exam PL-400

Stream Data to Application Insights

Question

You need to use Application Insights to monitor your canvas app.

You provision an Application Insights resource in the Azure portal.

What do you need to provide to the canvas app to stream data to Application Insights?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answer: D

Application Insights is the feature of Azure Monitor.

It can help makers and developers to collect and analyze the canvas app telemetry.

Application Insights provides information like the number of sessions, number of the logged events, number of app users.

Developers can even trace the app's event executions by incorporating the Trace command within the app's code.

Then they can work with Azure Logs and Kusto to analyze the Trace output.

Or makers and developers might use Power BI for a visual representation of the Trace results.

Before analyzing the results, you need to provision a new Application Insights resource in Azure Portal.

After creating the new resource, you find and copy the Instrumentation key on the Application Insights' Overview panel.

Aa

Hb CREATE NEW CONNECTION G RELOAD ORGANIZATIONS | (REPLAY PL

vvrwvwrowrewrowreowreowrowreyws»y

CBTrial x

[iRegister + [QView ~» x Uninstall Profiler £4 Debug [% Unn

Registered Plugins & Custom Workflow Activities

@ (Assembly) Microsoft.Dynamics.AppModule.Plugins

@ (Assembly) Microsoft. Dynamics.CDS.AuthorizationCorePlugins
@ (Assembly) Microsoft. Dynamics.CDS.MetadataExtensionPlugins
@ (Assembly) Microsoft.Dynamics.CDS.PSqlPlugins

@% (Assembly) Microsoft.Dynamics.ComponentHistory.Plugins

@ (Assembly) Microsoft.Dynamics.Enterprise.Connectors.Plugin

% (Assembly) Microsoft. Dynamics.EnvironmentVariables.Plugins

@ (Assembly) Microsoft. Dynamics.KMOnlineFeatures.Plugins

@ (Assembly) Microsoft.Dynamics.KnowledgeArticleFeatures.Plugins
@ (Assembly) Microsoft. Dynamics.MicrosoftFlow.Plugins

@ (Assembly) Microsoft.Dynamics.PowerAppsChecker.Plugins

@ (Assembly) Microsoft. Dynamics.PowerPlatformConnectionReferences.Plug

Properties Details

Register New Assembly

Step 1: Specify the location of the assembly to analyze |
C:\Users\AndreiSergeev\OneDrive - CloudBreezy\Dev\Power Platform\Power Apps\PowerApps

Load Assembly

Step 2: Select the plugin and workflow activities to register
Vv Select All / Deselect All

@ (Assembly) FollowupPlugin

v7) Tm} (Plugin) PowerApps.Samples.FollowupPlugin - Isolatable

Step 3: Specify the isolation mode

@) Sandbox ©

None

Step 4: Specify the location where the assembly should be stored

@) Database @ 7
Disk

GAC

Step 5: Log

|

Register Selected Plugins Close Bn: |

This key is the link between your canvas app and Application Insights.

When you open your canvas app for editing and select the App object in a Tree view, you will see the Instrumentation key field on the right App properties panel.

After you paste the key, save and publish the canvas app.

Whenever somebody plays the app, the Power Platform sends the telemetry to the Application Insights.

rie | lel Eek Save and Close =, =} Show Dependencies | Export Solution PeTransiations ~ | |g} Publish All Customizations 4, Actions + (@Help +

‘ Solution: Default Solution Oo
[¥ «2 Plug-in Assemblies

Solution Default Solution

Component Type Plug-in Assembly v View Customizable v
YF Information
fg Components
& Entities O Name “ Version Culture Public Key Token Isolation Mad...| Created On Modified On Y Oo
BI option sets
*®| Client Extensions
[9] Web Resources

+a How to Register Assemblies X Delete 3 Show Dependencies = Solution Layers (Sf Managed Properties More Actions ~

Pro Microsoft.CDS.ApplicationUser.Plugins 1.0.0.0 neutral 31bf3856ad364e35 None 4/10/2021 8:07 AM 4/10/2021 8:07 AM
S

2 FollowupPlugin Microsoft.CDS.Catalog.Plugins 9.0.0.0 neutral 31bf3856ad364e35 None 4/10/2021 9:01 AM 4/10/2021 9:01 AM

+ Microsoft.CDS.ApplicationUser.Plugins

“i Microsoft.CDS.Catalog. Plugins Microsoft.CDS.CustomAPI.Plugins 9.0.0.0 neutral 31bf3856ad364e35 None 4/10/2021 9:02 AM 4/10/2021 9:02 AM

~G@ Microsoft.CDS.CustomAPI.Plugins i

+ Microsoft.CDS. DataLakeWorkspaces. Plugins 1 Microsoft.CDS.OrganizationDataSync.Plugins 1.0.0.0 neutral 31bf3856ad364e35 Sandbox 4/10/2021 9:05 AM 4/10/2021 9:05 AM

+a Microsoft.CDS.OrganizationDataSync.Plugins

+i Microsoft. Dynamics.AppModule. Plugins Microsoft. Dynamics.ComponentHistory.Plugins 9.0.0.0 neutral 31bf3856ad364e35 None 4/10/2021 7:50 AM 4/10/2021 7:50 AM

+ Microsoft.Dynamics.ComponentHistory. Plugins

+ Microsoft. Dynamics.KMOnlineFeatures.Plugins Microsoft. Dynamics.KMOnlineFeatures.Plugins 9.1.0.0 neutral 31bf3856ad364e35 Sandbox 4/10/2021 8:51 AM 4/10/2021 8:51 AM

+ Microsoft.Dynamics.KnowledgeArticleFeatures.Plugins

“Gi Microsoft. Dynamics.PowerAppsChecker. Plugins Microsoft.Dynamics.KnowledgeArticleFeatures.Plugins 9.1.0.0 neutral 31bf3856ad364e35 None 4/10/2021 8:53 AM 4/10/2021 8:53 AM

+ Microsoft.Dynamics.PowerPlatformConnectionReferenc...

+ Microsoft. Dynamics.PowerVA.Plugins Microsoft. Dynamics.PowerAppsChecker. Plugins 9.0.0.1 neutral 31bf3856ad364e35 None 4/10/2021 9:27 AM 4/10/2021 9:27 AM

+ Microsoft. Dynamics.ServiceManagementControlsExten...

7G Microsoft. Dynamics.SLAManagement.Plugins Microsoft.Dynamics.PowerPlatformConnectionReferen... 1.0.0.0 neutral 31bf3856ad364e35 None 4/10/2021 8:19 AM 4/10/2021 8:19 AM

+ Microsoft.Dynamics.SolutionComponentConfiguration....

iad ete yrratiis SOu rote yg Microsoft. Dynamics.PowerVA. Plugins 1.0.0.0 neutral 31bf3856ad364e35 None 4/10/2021 8:23 AM 4/17/2021 12:49 AM

Gj Microsoft. Dynamics.SolutionPackageMapping. Plugins

sie Microsote: Dynamics solution sur mary Fuqiis Microsoft.Dynamics.ServiceManagementControlsExten... 9.1.0.0 neutral 31bf3856ad364e35 None 4/10/2021 8:45 AM 4/10/2021 8:45 AM

+ Microsoft.Dynamics.UCICalendar.Plugins
+i Microsoft.Xrm,DataProvider.JsonConverter.Plugins 1-23 of 23 (0 selected) rr Page 1 >

All other options are incorrect.

For more information about integrating the Application Insights with canvas apps, please visit the below URLs:

To stream data from a canvas app to Application Insights, you need to provide the Instrumentation key. The instrumentation key is a unique key that is generated when you create an Application Insights resource in Azure.

The instrumentation key is a GUID that identifies the Application Insights resource to which the data is being sent. When you add the instrumentation key to your canvas app, it enables the app to send telemetry data to the Application Insights resource for monitoring and analysis.

The other options listed are not relevant to streaming data from a canvas app to Application Insights.

A connection string is a parameter string that contains the necessary connection information to access a data source or service. This is not needed to stream data to Application Insights.

An Azure subscription ID is a unique identifier for an Azure subscription. It is used to manage resources within the subscription but is not required to stream data to Application Insights.

An endpoint URL is the URL where a web service or API can be accessed. This is not needed to stream data to Application Insights.

A shared access signature (SAS) is a token that is used to authenticate and authorize access to Azure storage resources. This is not needed to stream data to Application Insights.