🛡️ Azure Subscription Activity Log Alert for Delete Role Assignment does not exist🟢
- Contextual name: 🛡️ Subscription Activity Log Alert for Delete Role Assignment does not exist🟢
- ID:
/ce/ca/azure/subscription/activity-log-alert-for-delete-role-assignment - Tags:
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Stats
not available
Logic
Description
Description
Create an activity log alert rule that notifies an action group whenever the activity log records the Delete role assignment operation in the Administrative category. The rule covers role assignments removed at the subscription scope and at every resource group and resource beneath it.
Rationale
Deleting a role assignment removes a principal's access without touching any protected resource. An attacker can remove the assignments of legitimate administrators or responders to slow the response, or remove an assignment they granted themselves to hide the escalation, and neither change is visible until someone reviews the assignments.
Audit
This policy marks an Azure Subscription as
INCOMPLIANTif no current enabled Activity Log Alert covers Administrative / Microsoft.Authorization/roleAssignments/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 producesUNDETERMINED. Complex or narrower scope strings require manual review and do not prove subscription-wide coverage. Notification recipients and delivery must be verified operationally.
Remediation
Remediation
Create an enabled Activity Log Alert for Microsoft.Authorization/roleAssignments/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
- Go to Monitor > Alerts and select Create > Alert rule.
- On the Scope tab, select the affected subscription itself and select Apply.
- On the Condition tab, select See all signals, choose Delete role assignment (Role Assignment), and select Apply.
- 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
Linked Framework Sections
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| 💼 CIS Azure v7.0.0 → 💼 6.1.2.13 Ensure that Activity Log Alert Exists for Delete Role Assignment (Automated) | 1 | no data | |||
| 💼 Cloudaware Framework → 💼 Alerting and Notification | 49 | no data |