Detection: Kubernetes Cluster Deleted
Overview
Detect when an Azure Kubernetes Service (AKS) cluster was deleted. Kubernetes clusters host critical containerized applications, and their deletion can result in service downtime and data loss. Monitoring these events helps ensure the availability and reliability of containerized workloads.
References:
Usage
Run the detection in your terminal:
powerpipe detection run azure_activity_log_detections.detection.kubernetes_cluster_deletedSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe detection run azure_activity_log_detections.detection.kubernetes_cluster_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.Kubernetes/connectedClusters/delete'  and status = 'Succeeded'
order by  timestamp desc;