You are designing a monitoring and remediation strategy for an enterprise web application hosted on Azure App Service. The application logs exceptions to an Application Insights workspace.
You need to implement an Azure Monitor Log Search Alert rule that triggers when the exception rate exceeds a specific threshold. The alert must execute the following workflow:
1. Dynamically email all users who hold the built-in 'Monitoring Contributor' role at the subscription level.
2. Invoke an automated remediation service hosted on an Azure Function App. This endpoint is secured using Microsoft Entra ID authentication.
3. Minimize query overhead and avoid duplicate filtering in the underlying Kusto Query Language (KQL) query execution.
Which configurations must you implement to meet these requirements?
- In the Action Group, add an action of type 'Email Azure Resource Manager Role' and select the 'Monitoring Contributor' role.Cevap
- In the Action Group, add an action of type 'Webhook', enable Microsoft Entra ID authentication, and specify the Tenant ID, Object ID of the service principal, and the Identifier URI of the secured endpoint.Cevap
- In the Log Search Alert rule, write a KQL query that excludes any explicit temporal filter (such as where timestamp > ago(...)), allowing the rule's aggregation parameters to control the query window.Cevap
- DIn the Action Group, add an action of type 'Azure Function', enable Microsoft Entra ID authentication, and provide the service principal details of the target Function App.
- EIn the Log Search Alert rule's KQL query, include a 'where timestamp > ago(5m)' clause to explicitly restrict the scanned telemetry to the -minute evaluation period.
- FIn the Action Group, add an action of type 'Email/SMS/Push/Voice', select 'Email', and manually add the individual email addresses of all team members currently holding the 'Monitoring Contributor' role.