This guide provides step-by-step instructions sending PowerApps Application Logs to Azure Application Insight. Form there it can be shipped to other monitoring tools such as Dynatrace, DataDog, Splunk, New Relic and my others.
Create an Application Insights resource
- Sign in to the Azure portal.
- Select Create a resource.
- Open the category Monitoring & Diagnostics, then select Application Insights.
- Enter all relevant information, then Review + create your Application Insights resource.
Get the connection string
- Open your Application Insights resource in the Azure portal.
- On the Overview pane in the Essentials section, look for Connection string.
- If you hover over the connection string, an icon appears which allows you to copy it to your clipboard.
Connect your app to Application Insights
- Sign in to Power Apps.
- Open an app to edit it.
- Select the App object in the left navigation tree view, and paste the Connection string from your Application Insights resource.
- Save and Publish your app.
- Play the published app and browse the different screens.
When you browse the app screens, events are automatically logged to Application Insights. These include usage details like:
- Where users access the app from
- Which devices users use
- The types of browsers users
Navigate back to the Target Groups page in the EC2 Dashboard. Click on the new target group you created, and verify that the Registered Targets are healthy.
View events in Application Insights
- Open the Application Insights resource you created previously.
- In the left navigation pane, select Users under the Usage section.
- Select a user session to view specific details, such as session length and screens visited.
- In the left navigation pane, select Events under the Usage section. You can view a summary of all the screens viewed across all app sessions.
