Soru

Zorluk: OrtaImplement Azure Monitor Alerts and Action Groups

An Azure App Service web app retrieves secrets from an Azure Key Vault. You configure Application Insights to monitor the web app. During testing, you find that no telemetry data is arriving in Application Insights. In addition, you must establish an alert that sends an email to the operations team if the Key Vault's overall availability falls below 99% over a 5-minute interval. Which configuration should you implement to resolve the telemetry issue and set up the alert?

  1. A
    Write code to initialize the Application Insights SDK without specifying a connection string. Create an Azure Monitor activity log alert rule for Key Vault administrative events, and associate it with an Action Group containing an email receiver.
  2. B
    Grant the web app's system-assigned managed identity GET secret permissions in the Key Vault access policy. Create an Azure Monitor metric alert rule for the Key Vault resource with the Availability metric set to less than 99%, and associate it with an Action Group containing an email receiver.
  3. Set the APPLICATIONINSIGHTS_CONNECTION_STRING in the App Service application settings. Create an Azure Monitor metric alert rule for the Key Vault resource with the Availability metric set to less than 99%, and associate it with an Action Group containing an email receiver.Cevap
  4. D
    Update the App Service application settings to reference Key Vault secrets using the syntax @Microsoft.KeyVault(SecretUri=...) to establish the telemetry connection. Create an Azure Monitor metric alert rule for the Key Vault resource with the Availability metric set to less than 99%, and associate it with an Action Group containing an email receiver.

Cevap

To resolve the telemetry issue, configure the APPLICATIONINSIGHTS_CONNECTION_STRING application setting in the App Service. To implement the alerting system, configure an Azure Monitor metric alert rule on the Key Vault targeting the Availability metric, and associate it with an Action Group containing an email receiver.
The correct configuration requires adding the APPLICATIONINSIGHTS_CONNECTION_STRING app setting to the App Service web app to ensure telemetry is sent to Application Insights. In addition, an Azure Monitor metric alert rule must be configured on the Key Vault's Availability metric with a threshold below 99% and linked to an Action Group containing an email receiver.

Adım Adım Çözüm

1
Identify the root cause of the missing telemetry in Application Insights.
Determine that the App Service needs the APPLICATIONINSIGHTS_CONNECTION_STRING setting configured to route telemetry.
Without the connection string, the App Insights SDK does not know where to send application telemetry.
2
Determine the correct alert rule type for tracking Key Vault availability.
Select a metric alert rule targeting the Availability metric on the Key Vault resource.
Availability is a near real-time metric measured over a time window, which requires a metric alert rather than an activity log alert.
3
Configure the notification mechanism.
Create an Azure Action Group containing an email receiver, and associate this Action Group with the metric alert rule.
Action Groups define the list of notification preferences and actions to execute when the alert rules are triggered.

Anahtar Kavram

Azure Monitor Metric Alerts and Action Groups configuration combined with Application Insights telemetry configuration
Tahmini Süre:1m 30s
Bu soruyu puanla