๐ก๏ธ Azure Subscription Activity Log Alert for Delete Policy Assignment does not exist๐ข
- Contextual name: ๐ก๏ธ Activity Log Alert for Delete Policy Assignment does not exist๐ข
- ID:
/ce/ca/azure/subscription/activity-log-alert-for-delete-policy-assignment - Tags:
- ๐ข Policy with categories
- ๐ข Policy with type
- ๐ข Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicโ
- ๐ง prod.logic.yaml๐ข
Similar Policiesโ
- Cloud Conformity: Create Alert for 'Delete Policy Assignment' Events
- Internal:
dec-x-9002886f
Similar Internal Rulesโ
| Rule | Policies | Flags |
|---|---|---|
| โ๏ธ dec-x-9002886f | 1 |
Descriptionโ
Descriptionโ
Create an activity log alert for the Delete Policy Assignment event.
Rationaleโ
Monitoring for delete policy assignment events gives insight into changes done in "azure policy - assignments" and can reduce the time it takes to detect unsolicited changes.
Auditโ
This policy evaluates Azure Subscriptions for the presence of an Azure Activity Log Alert that captures Delete Policy Assignment events. A subscription is marked asย
INCOMPLIANTย if it does not have an Activity Log Alert whoseCondition JSONfilters on theย Microsoft.Authorization/policyAssignments/deleteย operation.Default Valueโ
By default, no monitoring alerts are created.
Referencesโ
- https://docs.microsoft.com/en-in/azure/azure-monitor/platform/alerts-activity-log
- https://docs.microsoft.com/en-in/rest/api/monitor/activitylogalerts/createorupdate
- https://docs.microsoft.com/en-in/rest/api/monitor/activitylogalerts/listbysubscriptionid
- https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-detection#lt-3-enable-logging-for-security-investigation
... see more
Remediationโ
Remediationโ
From Azure Portalโ
- Navigate to the
Monitorblade.- Select
Alerts.- Select
Create.- Select
Alert rule.- Choose a subscription.
- Select
Apply.- Select the
Conditiontab.- Click
See all signals.- Select
Delete policy assignment (Policy assignment).- Click
Apply.- Select the
Actionstab.- Click
Select action groupsto select an existing action group, orCreate action groupto create a new action group.- Follow the prompts to choose or create an action group.
- Select the
Detailstab.- Select a
Resource group, provide anAlert rule nameand an optionalAlert rule description.- Click
Review + create.- Click
Create.From Azure CLIโ
az monitor activity-log alert create --resource-group "<resource group name>" --condition category=Administrative and operationName=Microsoft.Authorization/policyAssignments/delete and level=<verbose | information | warning | error | critical> --scope "/subscriptions/<subscription ID>" --name "<activity log rule name>" --subscription <subscription id> --action-group <action group ID>
... [see more](remediation.md)