Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft Defender for SQL is a Defender plan in Microsoft Defender for Cloud. Microsoft Defender for SQL includes functionality for surfacing and mitigating potential database vulnerabilities and detecting anomalous activities that could indicate a threat to your Azure Synapse Analytics dedicated SQL pool. It provides a single location for enabling and managing these capabilities.
Microsoft Defender for SQL doesn't apply to serverless SQL pools or Apache Spark pools.
What are the benefits of Microsoft Defender for SQL?
Microsoft Defender for SQL provides a set of advanced SQL security capabilities, including SQL Vulnerability Assessment and Advanced Threat Protection.
- Vulnerability Assessment is an easy-to-configure service that can discover, track, and help you remediate potential database vulnerabilities. It provides visibility into your security state, and it includes actionable steps to resolve security issues and enhance your database fortifications.
- SQL Advanced Threat Protection detects anomalous activities indicating unusual and potentially harmful attempts to access or exploit your database. It continuously monitors your database for suspicious activities, and it provides immediate security alerts on potential vulnerabilities, SQL injection attacks, and anomalous database access patterns. Advanced Threat Protection alerts provide details of the suspicious activity and recommend action on how to investigate and mitigate the threat.
Enable Microsoft Defender for SQL once to enable all these included features for the databases on your logical server. Enabling or managing Microsoft Defender for SQL settings requires membership in the SQL Security Manager role or one of the database or server administrator roles.
For more information about Microsoft Defender for SQL pricing, see the Microsoft Defender for Cloud pricing page.
Enable Microsoft Defender for SQL
There are multiple ways to enable Microsoft Defender plans. You can enable it at the subscription level (recommended) either:
- In Microsoft Defender for Cloud in the Azure portal
- Programmatically with the REST API, Azure CLI, PowerShell, or Azure Policy
Alternatively, you can enable it at the resource level as described in Enable Microsoft Defender for SQL at the resource level.
When you enable the plan at the subscription level, dedicated SQL pools in logical servers in the subscription are protected. Dedicated SQL pools in Azure Synapse Analytics workspaces do not use logical SQL servers. You can then disable individual resources. To manually manage which resources are protected, disable the plan at the subscription level and enable each resource that you want protected.
Enable Microsoft Defender for SQL at the subscription level in Microsoft Defender for Cloud
To enable Microsoft Defender for SQL at the subscription level from within Microsoft Defender for Cloud:
- From the Azure portal, open Defender for Cloud.
- From Defender for Cloud's menu, select Environment Settings.
- Select the relevant subscription.
- Change the plan setting to On.
- Select Save.
Enable Microsoft Defender plans programmatically
You can use several programmatic methods to enable Microsoft Defender plans in Azure.
Use any of the following tools to enable Microsoft Defender for your subscription:
| Method | Instructions |
|---|---|
| REST API | Pricings API |
| Azure CLI | az security pricing |
| PowerShell | Set-AzSecurityPricing |
| Azure Policy | Bundle Pricings |
Enable Microsoft Defender for SQL at the resource level
Enable Microsoft Defender plans at the subscription level so that new resources are automatically protected. However, if you have an organizational reason to enable Microsoft Defender for Cloud at the resource level, use the following steps:
- From the Azure portal, open your dedicated SQL pool or its logical server.
- Under the Security heading, select Defender for Cloud.
- Select Enable Microsoft Defender for SQL.
Note
A storage account is automatically created and configured to store your Vulnerability Assessment scan results. If you already enabled Microsoft Defender for another server in the same resource group and region, the existing storage account is used.
The cost of Microsoft Defender for SQL aligns with Microsoft Defender for Cloud standard tier pricing per node, where a node is the entire logical server. You pay only once for protecting all databases on the server with Microsoft Defender for SQL. You can evaluate Microsoft Defender for Cloud with a free trial.
Manage Microsoft Defender for SQL settings
To view and manage Microsoft Defender for SQL settings:
From the Security area of your dedicated SQL pool or logical server, select Defender for Cloud.
On this page, you see whether Microsoft Defender for SQL is enabled.
If Microsoft Defender for SQL is enabled, select Configure to edit its settings.
Make the necessary changes and select Save.