Question

Difficulty: MediumImplement Application Insights Profiler, Snapshot Debugger, and Smart Detection

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)

  1. Configure the APPLICATIONINSIGHTS_CONNECTION_STRING application setting in the App Service pointing to the Application Insights resource.Answer
  2. Assign the developers the Snapshot Debugger role on the Application Insights resource.Answer
  3. C
    Host the web application on a Free (F1) App Service plan, as it is the minimum tier that supports Snapshot Debugger background tasks.
  4. D
    Omit 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

1
Ensure the application is configured to connect to the Application Insights resource by setting the connection string app setting.
The SDK is initialized and knows the endpoint to transmit telemetry data.
Without a valid connection string, the application cannot transmit exception snapshots to the target Application Insights resource.
2
Assign the Snapshot Debugger role to the developer accounts.
Developers obtain permissions to view diagnostic call stacks and debug snapshots in the Azure portal.
Access to view sensitive snapshot debug data is protected by Azure Role-Based Access Control (RBAC) and requires the Snapshot Debugger role or administrative access.

Key Concept

Configuring requirements and access roles for Application Insights Snapshot Debugger.
Rate this question