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 to Standard

Check fails if:

  • Pricing tier for SqlServerVirtualMachines is not configured or not set to Standard

Applies to:

  • Azure Subscriptions with SQL Servers running on Virtual Machines

How to fix it

Azure Portal

  1. Go to Microsoft Defender for Cloud
  2. Under Management, select Environment Settings
  3. Click on the Subscription name
  4. Select the Defender plans blade
  5. Click Select types > in the row for Databases
  6. Set the toggle switch for SQL servers on machines to On
  7. Click Continue
  8. 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.


Further resources

Was this article helpful?