More Info:

Ensure that a Microsoft Azure activity log alert is fired whenever a ‘Delete Virtual Machine’ event is triggered within your cloud account. An Azure activity log alert fires each time the action event that matches the condition specified in the alert configuration is triggered. The alert condition that this rule searches for is Whenever the Administrative Activity Log 'Delete Virtual Machine (Microsoft.Compute/virtualMachines)' has 'any' level, with 'any' status and event is initiated by 'any'

Risk Level

High

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

Sure, here are the step-by-step instructions to remediate misconfiguration of not having alerts set up for delete virtual machine events in Azure:

  1. Login to Azure portal using your credentials.
  2. Navigate to the “Virtual Machines” blade from the left-hand side menu.
  3. Select the virtual machine for which you want to set up alerts for delete events.
  4. Under the “Monitoring” section, select “Alerts” and click on the “New alert rule” button.
  5. In the “New alert rule” page, select the “Signal logic” tab.
  6. In the “Signal logic” tab, select “Virtual machines” from the “Resource type” drop-down menu.
  7. Select “Delete” from the “Signal name” drop-down menu.
  8. Set the “Aggregation type” to “Count”.
  9. Set the “Threshold value” to “1”.
  10. Set the “Evaluation frequency” to “5 minutes”.
  11. In the “Actions” tab, select “Add action group”.
  12. In the “Add action group” page, click on the “Create action group” button.
  13. In the “Create action group” page, provide a name for the action group.
  14. Select “Email/SMS/Push/Voice” as the “Action type”.
  15. Enter the email address or phone number in the “Email/SMS/Push/Voice details” field.
  16. Click on the “OK” button to create the action group.
  17. Select the newly created action group from the “Actions” tab.
  18. Click on the “Create alert rule” button to save the alert rule.

With these steps, you have successfully remediated the misconfiguration of not having alerts set up for delete virtual machine events in Azure. Now, you will receive an email or SMS notification whenever a virtual machine is deleted in your Azure environment.

Additional Reading: