More Info:

Ensure that an Azure activity log alert is fired whenever ‘Create Virtual Machine’ or ‘Update Virtual Machine’ events are triggered in your Microsoft Azure cloud account. Activity log alerts get triggered when a new activity log event that matches the condition specified in the alert configuration occurs. The matched condition is Whenever the Administrative Activity Log ‘Create or Update Virtual Machine (Microsoft.Compute/virtualMachines)’ has ‘any’ level, with ‘any’ status and event is initiated by ‘any’

Risk Level

Informational

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

Sure, here are the step by step instructions to remediate the misconfiguration “Setup Alerts for Virtual Machine Events” in Azure using the Azure console:

  1. Log in to the Azure portal (https://portal.azure.com/).
  2. Navigate to the “Virtual machines” section.
  3. Select the virtual machine for which you want to set up alerts.
  4. In the left-hand menu, click on “Alerts”.
  5. Click on the “New alert rule” button.
  6. In the “Basics” tab, give a name for the alert rule.
  7. In the “Condition” tab, select “Virtual machine” under “Resource type”.
  8. Under “Condition”, select the event type you want to set up an alert for. For example, you can select “VM deallocated” to get an alert when the virtual machine is deallocated.
  9. Under “Additional condition”, you can set up additional conditions for the alert rule if required.
  10. In the “Actions” tab, select “Email/SMS/Push/Voice” under “Action group”. If you haven’t set up an action group yet, you can create a new one by clicking on “New action group”.
  11. In the “Notifications” tab, add the email addresses or phone numbers of the recipients who should receive the alerts.
  12. Click on the “Create alert rule” button to create the alert rule.

By following these steps, you should be able to successfully remediate the misconfiguration “Setup Alerts for Virtual Machine Events” in Azure using the Azure console.

Additional Reading: