Sunday, 25 June 2023

App Insights for Power Platform - Part 8 - Verify logging is going to the correct Log analytics

Overview: If you are using ALM/DTAP environments, I want to ensure all my environments are logging to the correct Log Analytics/App Insights.  This needs to cover all services such as Canvas Apps, Functions, Service Bus,...

Canvas Apps: Open the Canvas app in Edit mode, Select "App", and check the instrumentation key points at the correct App Insights instance.

1. Ensure you have setup an application key in each Canvas App you build.



2. Ensure you turn on the logging feature (provides more logging)


3. Write custom logs (here I'm doing it using the Trace Function in a Canvas Power App

Trace("Practice | Info (1) | " & txtMarker.Text,TraceSeverity.Information)

4. Ensure you are in run mode (edit and play mode does not log)

5. Open App Insights or Log Analytics, and check the trace is coming in



Series

App Insights for Power Platform - Part 1 - Series Overview 

App Insights for Power Platform - Part 2 - App Insights and Azure Log Analytics 

App Insights for Power Platform - Part 3 - Canvas App Logging (Instrumentation key)

App Insights for Power Platform - Part 4 - Model App Logging

App Insights for Power Platform - Part 5 - Logging for APIM 

App Insights for Power Platform - Part 6 - Power Automate Logging

App Insights for Power Platform - Part 7 - Monitoring Azure Dashboards 

App Insights for Power Platform - Part 8 - Verify logging is going to the correct Log analytics (this post)

App Insights for Power Platform - Part 9 - Power Automate Licencing

App Insights for Power Platform - Part 10 - Custom Connector enable logging (this post)

App Insights for Power Platform - Part 11 - Custom Connector Behaviour from Canvas Apps Concern

0 comments:

Post a Comment