Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Enable Application Insights support in Copilot Studio Kit to enhance telemetry, monitor performance, and diagnose issues. Follow the step-by-step instructions to set up and configure Application Insights for your environment.
Prerequisite
An Application Insights resource that you created and an agent configured to send telemetry to it. Learn more in Connect your Copilot Studio copilot to Application Insights.
Register a new application in Azure portal
To enable Application Insights support in Copilot Studio Kit, register a new application in Microsoft Azure portal.
Note
If you already created an app registration for Copilot Studio Kit to use with user authentication, you can reuse that application for App Insights Results Enrichment instead of creating a new one. If that's the case, you can skip to step 3 after navigating to the existing app registration in Azure portal.
Sign in to Azure portal
Register a new application and add a new client secret for it. Make a note of the secret to use it as the App Insights Secret in the agent configuration (depending on the App Insights Secret Location configured).
Note the Directory (tenant) and Application (client) IDs of the application to use them as the App Insights Tenant ID and App Insights Client ID in the agent configuration.
Select View API permissions from Overview (or navigate to Manage > API permissions from the sidebar).
Select Add a permission.
Select APIs my organization uses and search for Application Insights API. Select Application Insights API from the list.
Select Delegated permissions.
Check Data.Read and proceed with Add permissions.
Provide access to Application Insights resource
Grant your registered application access to the Application Insights resource:
- Go to the Application Insights resource in the Azure portal.
- Select Access control (IAM).
- Select Add role assignment.
- Select Reader from the list and select Next.
- Select Select members.
- Search and select your application from the list. Finish by selecting Select.
- Select Next to go to Review + assign.
- Review the permissions and select Review + assign at the bottom of the screen.
More information: Assign Azure roles using the Azure portal
Locate AppId
Make note of the AppId of your Application Insights resource to use it as the App Insights Application ID in the agent configuration.
To obtain the AppId: