You monitor Azure virtual machines by using Azure Monitor.
You plan to restart the virtual machines when CPU usage exceeds 95 percent for more than 30 minutes.
You need to create an alert in Azure Monitor to restart the virtual machines. The solution must minimize administrative effort.
Which type of action should you use in the alert?
Click on the arrows to vote for the correct answer
A. B. C. D.C
Automation runbooks allows you to automatically perform standard remediations in response to VM alerts, like restarting or stopping the VM.
Previously, during VM alert rule creation you were able to specify an Automation webhook to a runbook in order to run the runbook whenever the alert triggered.
However, this required you to do the work of creating the runbook, creating the webhook for the runbook, and then copying and pasting the webhook during alert rule creation. With this new release, the process is much easier because you can directly choose a runbook from a list during alert rule creation, and you can choose an Automation account which will run the runbook or easily create an account.
https://azure.microsoft.com/en-us/blog/automatically-remediate-azure-vm-alerts-with-automation-runbooks/To create an alert in Azure Monitor to restart the virtual machines, you need to follow these steps:
Create a metric alert: First, create a metric alert in Azure Monitor that monitors the CPU usage of the virtual machines. You can use the CPU usage metric provided by Azure Monitor, which is available for all virtual machines.
Set the threshold: Set the threshold for the alert to 95 percent. This means that when the CPU usage of a virtual machine exceeds 95 percent, the alert will be triggered.
Configure the alert rule: Configure the alert rule to trigger the alert when the CPU usage exceeds 95 percent for more than 30 minutes. You can do this by setting the evaluation window to 30 minutes and the threshold to 95 percent.
Define the action: Define the action that should be taken when the alert is triggered. In this case, you want to restart the virtual machine. You can do this by selecting the Automation Runbook action.
Configure the Automation Runbook: Configure the Automation Runbook to restart the virtual machine. You can do this by creating a PowerShell script that connects to the virtual machine and executes the restart command.
The correct answer to the question is C. Automation Runbook, as this is the type of action that can be used to restart the virtual machine when the alert is triggered. The other options (ITSM, Webhook, and Logic App) are not relevant in this scenario as they cannot be used to restart the virtual machine.