Information
Turning on Microsoft Defender for Azure SQL Databases enables threat detection for Managed Instance Azure SQL databases, providing threat intelligence, anomaly detection, and behavior analytics in Microsoft Defender for Cloud.
Rationale:
Enabling Microsoft Defender for Azure SQL Databases allows for greater defense-in-depth, includes functionality for discovering and classifying sensitive data, surfacing and mitigating potential database vulnerabilities, and detecting anomalous activities that could indicate a threat to your database.
Impact:
Turning on Microsoft Defender for Azure SQL Databases incurs an additional cost per resource.
Solution
Remediate from 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 next to Azure SQL Databases to On.
Select Continue.
Select Save.
Remediate from Azure CLI
Run the following command:
az security pricing create -n SqlServers --tier 'standard'
Remediate from PowerShell
Run the following command:
Set-AzSecurityPricing -Name 'SqlServers' -PricingTier 'Standard'
Default Value:
By default, Microsoft Defender plan is off.