Skip to main content

🛡️ Azure Subscription Activity Log Alert for Delete Resource Lock does not exist🟢

  • Contextual name: 🛡️ Subscription Activity Log Alert for Delete Resource Lock does not exist🟢
  • ID: /ce/ca/azure/subscription/activity-log-alert-for-delete-resource-lock
  • Tags:
  • Policy Type: COMPLIANCE_POLICY
  • Policy Categories: SECURITY

Stats​

not available

Logic​

Description​

Open File

Description​

Create an activity log alert rule that notifies an action group whenever the activity log records the Delete management locks operation in the Administrative category. The operation covers resource locks on the subscription, its resource groups and individual resources.

Rationale​

A CanNotDelete or ReadOnly lock blocks deletion or modification for every user regardless of role, so removing it is the step that comes before deleting or overwriting a locked resource. Without an alert, the lock removal and the destructive change that follows can happen minutes apart with no notification in between.

Audit​

This policy marks an Azure Subscription as INCOMPLIANT if no current enabled Activity Log Alert covers Administrative / Microsoft.Authorization/locks/delete, has a resolved action group, and covers the subscription root. Category and operation must occur on their matching JSON fields, with no additional Level, Status, Caller, or other filter.

A qualifying alert makes the subscription COMPLIANT. Otherwise, unassessable alert configuration produces UNDETERMINED.

Remediation​

Open File

Remediation​

Create an enabled Activity Log Alert for Microsoft.Authorization/locks/delete in the Administrative category across the affected subscription. Set the scope to /subscriptions/{{subscription-id}}.

Review existing alerts for this event before creating another. Select a current action group with enabled notification receivers for the responsible team, and review the expected notification volume and any charges for its notification channels.

Use an unused alert-rule name for the command examples. Before editing an existing rule, record its configuration and retain all action groups that are still required.

From Azure Portal​

  1. Go to Monitor > Alerts and select Create > Alert rule.
  2. On the Scope tab, select the affected subscription itself and select Apply.
  3. On the Condition tab, select See all signals, choose Delete management locks (Management locks), and select Apply.
  4. Leave Event level, Status, and Event initiated by set to All. The condition should match only the Administrative category and the specified operation.

... see more

policy.yaml​

Open File

Linked Framework Sections​

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
💼 CIS Azure v7.0.0 → 💼 6.1.2.16 Ensure that Activity Log Alert Exists for Delete Resource Lock (Automated)1no data
💼 Cloudaware Framework → 💼 Alerting and Notification49no data