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?
- AWrite 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.
- BGrant 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.
- 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
- DUpdate 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
Anahtar Kavram
Azure Monitor Metric Alerts and Action Groups configuration combined with Application Insights telemetry configuration
Tahmini Süre:1m 30s