π Azure Subscription Activity Log Alert for Delete SQL Server Firewall Rule does not exist π’
- Contextual name: π Activity Log Alert for Delete SQL Server Firewall Rule does not exist π’
- ID:
/ce/ca/azure/subscription/activity-log-alert-for-delete-sql-server-firewall-rule
- Located in: π Azure Subscription
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-6fc9c949
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-6fc9c949 | 1 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Create an activity log alert for the "Delete SQL Server Firewall Rule."
Rationaleβ
Monitoring for Delete SQL Server Firewall Rule events gives insight into SQL network access changes and may reduce the time it takes to detect suspicious activity.
Impactβ
There will be a substantial increase in log size if there are a large number of administrative actions on a server.
Auditβ
From Azure Portalβ
- Navigate to the
Monitor
blade.- Click on
Alerts
.- In the Alerts window, click on
Alert rules
.- Ensure an alert rule exists where the Condition column contains
Operation name=Microsoft.Sql/servers/firewallRules/delete
.- Click on the
Alert Name
associated with the previous step.- Ensure the
Condition
panel displays the textWhenever the Activity Log has an event with Category='Administrative'
,Operation name='Delete server firewall rule'
and does not filter onLevel
,Status
orCaller
.- Ensure the
Actions
panel displays an Action group is assigned to notify the appropriate personnel in your organization.... see more
Remediationβ
Remediationβ
From Azure Portalβ
- Navigate to the
Monitor
blade.- Select
Alerts
.- Select
Create
.- Select
Alert rule
.- Choose a subscription.
- Select
Apply
.- Select the
Condition
tab.- Click
See all signals
.- Select
Delete server firewall rule (Server Firewall Rule)
.- Click
Apply
.- Select the
Actions
tab.- Click
Select action groups
to select an existing action group, orCreate action group
to create a new action group.- Follow the prompts to choose or create an action group.
- Select the
Details
tab.- Select a
Resource group
, provide anAlert rule name
and 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.Sql/servers/firewallRules/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)