You are configuring diagnostic telemetry for a .NET web application hosted on an Azure App Service. The application is experiencing intermittent unhandled exceptions in production, and you need to enable the Application Insights Snapshot Debugger to collect call stacks when these exceptions occur. Developers must also be able to view these snapshots in the Azure portal.
Which of the following configuration actions are required? (Select TWO)
- Configure the APPLICATIONINSIGHTS_CONNECTION_STRING application setting in the App Service pointing to the Application Insights resource.Answer
- Assign the developers the Snapshot Debugger role on the Application Insights resource.Answer
- CHost the web application on a Free (F1) App Service plan, as it is the minimum tier that supports Snapshot Debugger background tasks.
- DOmit the connection string configuration in the application settings and rely on default Azure Monitor automated local telemetry loopback.
Answer
Configure the APPLICATIONINSIGHTS_CONNECTION_STRING application setting in the App Service pointing to the Application Insights resource, and assign the developers the Snapshot Debugger role on the Application Insights resource.
Enabling the Snapshot Debugger requires configuring the connection string so the Application Insights SDK can authenticate and send telemetry data. Viewing the collected snapshots in the Azure portal requires the Snapshot Debugger role (or Owner/Contributor roles) to be assigned to the developers' Microsoft Entra identities.
Step-by-Step Solution
Key Concept
Configuring requirements and access roles for Application Insights Snapshot Debugger.