You are implementing a monitoring solution in Azure. You configure an Azure Monitor metric alert to monitor the CPU usage of a critical database virtual machine. When the CPU usage exceeds 90%, the alert must send a notification to a third-party ticketing system's REST API endpoint. The ticketing system's API accepts JSON payloads but requires a custom schema with specific fields (such as 'ticket_priority' and 'source_device') that do not match the default Azure Monitor alert schema or the Common Alert Schema. You need to implement a solution that transforms the alert payload into the required format and forwards it to the API, while minimizing administrative effort and avoiding custom code maintenance. Which of the following is the best solution to meet this requirement?
- Route the alert to an Azure Logic App by using the Logic App action in the action group, and configure the workflow to parse the alert JSON, map it to the custom schema, and call the REST API.Answer
- BModify the webhook action in the action group to use a custom JSON payload template that maps the Azure Monitor schema to the third-party schema.
- CCreate an alert processing rule with a custom action to rewrite the alert payload properties before the action group is executed.
- DConfigure the webhook action in the action group to use the Common Alert Schema, and define the required custom fields in the Custom HTTP Headers section of the webhook configuration.