Connect PowerApps to Azure Application Insights

Azure Insight is a comprehensive cloud-based monitoring and analytics solution offered by Microsoft Azure. It empowers organizations to gain deep visibility into the performance, availability, and usage patterns of their applications and resources hosted on Azure. By collecting and analyzing telemetry data from various sources, Azure Insight enables proactive identification of issues, rapid troubleshooting, and optimization of application performance. This real-time intelligence allows businesses to make informed decisions, enhance user experiences, and ensure the optimal functioning of their cloud-based solutions.

Prerequisite

  • Access to the Azure Portal
  • Admin Role to manage and create Application Insights
  • An active Azure Subscription

Please keep in mind, that Azure Application Insight can produces running costs. Those pricing can be seen here: Pricing Microsoft Azure Application Insights

In my Example I used the Basis logs with no analytics. As of 11th August 2023, 5GB Data per Month are free and after that every GB Cost 53 Cents. With Analytics you pay much more.

First Step: Setup Application Insight

  1. Go to https://portal.azure.com
  2. Search for Application Insights
  3. Create a new Application Insight
    • Select the Subscription and the Resource Group
    • Give it a Name and select the Region
    • As for Resource Mode you should only select Workspace-based because Classic is retired in Feb. 2024
    • Select the Subscription for the Workspace
    • Select the Workspace for the LOG-Analytics

Now you have to wait a few seconds up to a minute or two until the deployment is ready.

  • Click on the Insight you just made to get to the details
  • Grab the Instrumentation-Key
Instrumentation Key on the upper right side

PowerApps

To connect to the Azure Application Insight you first have to open the PowerApp in Edit Mode.

  • In the Editor select the App Component in the Screen Overview at the left side.
  • Find the Instrumentation Key Property or look at the detail screen on the left side
  • Insert the Key, Save the App and publish it.

If you want to Pass error to the Azure Application you should activate the Setting for it.

  • Click the three dots in the Menu Bar
  • Select Settings -> Upcoming Features
  • Select Experimental and activate
    • Pass errors to Azure Application Insights
    • Enable Azure Application Insights correlation tracing

Congratulations on establishing a seamless connection between your Power App and Application Insights. This integration unlocks a realm of expansive possibilities, creating avenues for user engagement, streamlining personal development efforts, and facilitating collaborative interaction with fellow developers.

Usage, Understanding and elaborating

Delving deeper into the intricacies of this connection, its interaction, utilization, and understanding will be elaborated in an another tutorial page. Stay tuned for an insightful exploration, where we’ll guide you step by step through the process, enabling you to harness its full potential. Keep an eye out for the link to this tutorial, coming soon.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert