Detection: Compute Disk Deleted
Overview
Detect when an Azure Compute disk was deleted. Disk deletions can result in data loss or disruption of services relying on the affected resources. Monitoring these events helps ensure data integrity and prevents unauthorized or accidental removal of critical storage.
References:
Usage
Run the detection in your terminal:
powerpipe detection run azure_activity_log_detections.detection.compute_disk_deletedSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe detection run azure_activity_log_detections.detection.compute_disk_deleted --shareSQL
This detection uses a named query:
select  tp_timestamp as timestamp,operation_name as operation,resource_id as resource,caller as actor,tp_index::varchar as subscription_id,resource_group_name as resource_group,tp_id as source_id,status as event_status,*
from  azure_activity_logwhere  operation_name = 'Microsoft.Compute/disks/delete'  and status = 'Succeeded'
order by  timestamp desc;