Using Application Insights with Power Virtual Agents

Did you know that Power Virtual Agents, much like many other offerings from Microsoft, has an easy, built-in way to connect to Application Insights? How to do this is exactly what we’ll cover in this post, and given the new Unified Canvas very recently going GA, we’ll show you how to connect in both the new and old canvas.

How to Connect to Application Insights in the New Unified Canvas:

This capability was actually absent during the Unified Canvas’ preview, so I was really excited to see it appear once the product became GA. You’ll want to open up the bot you’d like to connect and perform the following steps:

  1. Go to “Settings”
  2. Go to “Bot details”
  3. Click on the “Advanced” tab
  4. Enter the connection string for your Application Insights resource
    (how to find your connection string)
  5. Publish your bot from PVA to ensure the settings take effect

How to Connect to Application Insights in the original PVA Canvas:

Open up the bot you’d like to connect, and perform the following steps:

  1. Go to “Topics”
  2. Go to “New Topic”
  3. Go to “Open in Bot Framework Composer”

After opening up your bot in Bot Framework Composer, you’ll want to perform the following steps:

  1. Go to “Configure” (wrench on left-hand navigation)
  2. Turn on “Advanced Settings View (json)”
  3. Enter the Instrumentation Key of your Application Insights resource (you can find this on the overview page of your Application Insights resource in the Azure Portal)
  4. Publish your bot from Bot Framework Composer back to PVA (cloud icon with upload arrow)
  5. Publish your bot from PVA to ensure the settings take effect

As always, I hope this helped and that you have a great day!

Cheers,
Matt

Matt Jimison

Microsoft 365 Geek - Husband, father, lover of basketball, football, smoking / grilling, music, movies, video games, and craft beer!

Leave a Reply

Your email address will not be published. Required fields are marked *