# Ensure that Activity Log Alert Exists for Delete Network Security Group (Automated)

- Source: https://support.icompaas.com/support/solutions/articles/62000234043-ensure-that-activity-log-alert-exists-for-delete-network-security-group-automated
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [CIS Microsoft Azure Foundations Benchmark v4.0.0](https://support.icompaas.com/support/solutions/62000112681) › [Azure microsoft CIS](https://support.icompaas.com/support/solutions/folders/62000169227)
- Last updated: 2026-06-15
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

Description:

Azure Network Security Groups (NSGs) enforce network filtering rules for virtual machines, subnets, and other Azure resources. Deleting an NSG instantly removes all associated network protections, which can expose workloads to unauthorized access or lateral movement. Activity Log Alerts must be configured to detect NSG deletion events so that security teams are notified immediately and can investigate potentially harmful or unexpected actions. This control verifies that an Activity Log Alert exists to monitor delete operations for NSGs.

  

Rationale:

This rule checks whether an Activity Log Alert monitors the operation of Microsoft.Network/networkSecurityGroups/delete. If such an alert does not exist, the configuration is considered NON\_COMPLIANT. Deleting an NSG is a high-risk action because it removes all security filtering for attached resources. Without monitoring, unauthorized NSG deletions can go unnoticed, leading to exposure of internal resources, compliance violations, and an increased attack surface.

  

Impact:

-   Enables real-time detection of NSG deletion events.
    
-   Supports incident response, change auditing, and forensics.
    
-   Helps enforce change-control policies for network configurations.
    
-   Contributes to compliance with frameworks such as CIS, NIST, PCI, etc., which require monitoring of security control changes.
    

  

Default Value: 

Azure does not automatically create or enforce Activity Log Alerts for NSG deletion. Administrators must configure them manually in Azure Monitor.

  

Pre-Requisites:

-   Owner, Contributor, or Monitoring Contributor on the subscription or resource group.
    
-   Permissions to manage alerts and action groups of Microsoft.Insights/activityLogAlerts/write, Microsoft.Resources/subscriptions/resourceGroups/read, Microsoft.Network/networkSecurityGroups/read
    

  

Remediation:

Test Plan:

1.  Sign in to the Azure Portal at [https://portal.azure.com](https://portal.azure.com/) 
    
2.  Navigate to Monitor
    
3.  Select Alerts
    
4.  Open Alert rules
    
5.  Verify an Activity Log Alert exists for "Delete Network Security Group (Network Security Group)"
    
6.  Verify the alert scope includes the required subscription
    
7.  Verify that an Action Group is associated
    
8.  If the alert does not exist, follow the implementation steps
    

  

Implementation Steps:

1.  Sign in to the Azure Portal at [https://portal.azure.com](https://portal.azure.com/) 
    
2.  Navigate to Monitor
    
3.  Select Alerts
    
4.  Click Create and select Alert rule
    

  

  

5.  Set the Scope to the required subscription
    
6.  Under Condition, click See all signals, search for "Delete Network Security Group (Network Security Group)", and select the signal.
    

  

  
  
  

7.  Associate with an Action Group
    
8.  Provide an alert rule name
    

  

  

9.  Click Review + Create
    
10.  Click Create
     

  

Backout Plan:

1.  Sign in to the Azure Portal at [https://portal.azure.com](https://portal.azure.com/) 
    
2.  Navigate to Monitor
    
3.  Select Alerts
    
4.  Open Alert rules
    
5.  Locate the "Delete Network Security Group" Activity Log Alert
    
6.  Delete the alert rule
    
7.  Confirm the deletion
    

  

Reference:

-   [https://learn.microsoft.com/azure/azure-monitor/alerts/activity-log-alerts](https://learn.microsoft.com/azure/azure-monitor/alerts/activity-log-alerts)
    
-   [https://learn.microsoft.com/rest/api/monitor/activitylogalerts](https://learn.microsoft.com/azure/azure-monitor/alerts/activity-log-alerts)
    
-   [https://learn.microsoft.com/azure/security/benchmarks/security-controls-v3-logging-threat-detection](https://learn.microsoft.com/azure/azure-monitor/alerts/activity-log-alerts)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
