Detection: Compute Snapshot Deleted
Overview
Detect when an Azure Compute snapshot was deleted. Snapshots are critical for backup and disaster recovery, and their deletion can compromise data availability and restoration efforts. Monitoring these events helps prevent unauthorized or accidental loss of backup data.
References:
Usage
Run the detection in your terminal:
powerpipe detection run azure_activity_log_detections.detection.compute_snapshot_deleted
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe detection run azure_activity_log_detections.detection.compute_snapshot_deleted --share
SQL
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/snapshots/delete' and status = 'Succeeded'
order by timestamp desc;