Verify that That Microsoft Defender for SQL Servers on Machines Is Set To 'On'
Framework Reference: A.8.16 Integration: Azure – Microso
Why this matters
Microsoft Defender for SQL Servers on Machines enhances protection for self-managed SQL databases by enabling detection of anomalous activities, potential threats, and vulnerabilities. It adds a vital layer of visibility and control, supporting threat intelligence and proactive security monitoring in cloud and hybrid environments.
What this check does
This Auto Check verifies that Defender for SQL Servers on Machines is enabled for the selected Azure subscription.
Check passes if:
- Pricing tier for
SqlServerVirtualMachines
is set toStandard
Check fails if:
- Pricing tier for
SqlServerVirtualMachines
is not configured or not set toStandard
Applies to:
- Azure Subscriptions with SQL Servers running on Virtual Machines
How to fix it
Azure Portal
- Go to Microsoft Defender for Cloud
- Under Management, select Environment Settings
- Click on the Subscription name
- Select the Defender plans blade
- Click Select types > in the row for Databases
- Set the toggle switch for SQL servers on machines to On
- Click Continue
- Click Save
Azure CLI
az security pricing create -n SqlServerVirtualMachines --tier 'standard'
PowerShell
Set-AzSecurityPricing -Name 'SqlServerVirtualMachines' -PricingTier 'Standard'
Exceptions
None. Defender for SQL Servers on Machines should be enabled for all workloads unless the environment does not use self-managed SQL VMs.