| severity | Critical |
|---|---|
| pillar | Security |
| category | SE:10 Monitoring and threat detection |
| resource | Microsoft Defender for Cloud |
| resourceType | Microsoft.Security/pricings |
| online version | https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.Defender.SQLOnVM/ |
Enable Microsoft Defender for SQL servers on machines.
SQL databases are used to store critical and strategic assets for your company and should be carefully secured. Microsoft Defender for SQL Servers on machines represents a single go-to location to manage security capabilities.
Enabling Defender for SQL automatically enables vulnerability Assessment for your SQL databases hosted in a VM. It discovers, tracks, and provides guidance to remediate potential database vulnerabilities.
Enabling at subscription level doesn't protect all your SQL servers. A Log Analytics agent must be deployed on the machine and the Log Analytics workspace must have Defender for SQL enabled.
Consider using Microsoft Defender for SQL Servers on machines to protect your SQL servers running on VMs.
To enable Defender for SQL servers on machines:
- Set the
Standardpricing tier for Microsoft Defender for SQL servers on machines.
For example:
{
"type": "Microsoft.Security/pricings",
"apiVersion": "2024-01-01",
"name": "SqlServerVirtualMachines",
"properties": {
"pricingTier": "Standard"
}
}To enable Defender for SQL servers on machines:
- Set the
Standardpricing tier for Microsoft Defender for SQL servers on machines.
For example:
resource defenderForSQLOnVM 'Microsoft.Security/pricings@2024-01-01' = {
name: 'SqlServerVirtualMachines'
properties: {
pricingTier: 'Standard'
}
}az security pricing create -n 'SqlServerVirtualMachines' --tier 'standard'Set-AzSecurityPricing -Name 'SqlServerVirtualMachines' -PricingTier 'Standard'