Configure Advanced Threat Protection in Azure SQL Managed Instance

Applies to: Azure SQL Managed Instance

Advanced Threat Protection for an Azure SQL Managed Instance detects anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases. Advanced Threat Protection can identify Potential SQL injection, Access from unusual location or data center, Access from unfamiliar principal or potentially harmful application, and Brute force SQL credentials - see more details in Advanced Threat Protection alerts.

You can receive notifications about the detected threats via email notifications or Azure portal

Advanced Threat Protection is part of the Microsoft Defender for SQL offering, which is a unified package for advanced SQL security capabilities. Advanced Threat Protection can be accessed and managed via the central Microsoft Defender for SQL portal.

Azure portal

  1. Sign in to the Azure portal.

  2. Navigate to the configuration page of the instance of SQL Managed Instance you want to protect. Under Security, select Microsoft Defender for Cloud.

  3. For Enablement Status, select Configure to open the Server settings page.

    Screenshot shows the Microsoft Defender for Cloud page for a SQL managed instance with the option to configure.

  4. In the Server settings configuration page, for Microsoft Defender for SQL, select ON.

    Screenshot shows the Server settings page where you can set up advanced threat protection.

  5. Choose Select Storage account and then select a storage account where Microsoft Defender for Cloud saves anomalous threat audit records.

  6. Under Advanced Threat Protection Settings, select Add your contact details to the subscriptions email settings in Defender for Cloud.

  7. For Email recipients, select users by role or add individual email addresses.

    Screenshot shows the Email notifications page where you can specify email recipients and notification types.

  8. Select the Notification types sent by Microsoft Defender for Cloud. Learn more about Advanced Threat Protection alerts.

  9. Select Save.

Next steps