A development team implements Application Insights monitoring for a .NET 8.0 web API hosted on an Azure App Service using a Premium v3 plan. During testing, the team confirms that the Snapshot Debugger is enabled in the application configuration. However, when developers attempt to open a debug snapshot from an unhandled exception in the Azure portal, they are blocked by an access denied message. The developers already hold the Contributor role at the subscription level. Which of the following actions must be taken to allow the developers to view the debug snapshots?
- Assign the Application Insights Snapshot Debugger Access role to the developers' Microsoft Entra accounts.Answer
- BAssign the Monitoring Contributor role to the developers' Microsoft Entra accounts.
- CConfigure the system-assigned managed identity of the App Service with the Storage Blob Data Reader role.
- DScale the App Service plan to the Isolated v2 tier and enable diagnostics logging.
Answer
Assign the Application Insights Snapshot Debugger Access role to the developers' Microsoft Entra accounts.
The correct action is to assign the Application Insights Snapshot Debugger Access role to the developers' Microsoft Entra accounts. Azure restricts snapshot visibility because snapshots can capture sensitive personal or proprietary data in local variables during an exception. Even Subscription Owners and Contributors cannot view snapshots by default. They must be explicitly granted the Application Insights Snapshot Debugger Access role.
Step-by-Step Solution
Key Concept
Snapshot Debugger RBAC Permissions