Enable Azure Defender for open-source relational databases and respond to alerts
Azure Defender detects anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases for the following services:
To get alerts from the Azure Defender plan you'll first need to enable it as shown below.
Learn more about this Azure Defender plan in Introduction to Azure Defender for open-source relational databases.
Enable Azure Defender
From the Azure portal, open the configuration page of the database server you want to protect.
From the security menu on the left, select Security Center.
If Azure Defender isn't enabled, you'll see a button as shown in the following screenshot. Select Enable Azure Defender for [Database type] (for example, "Azure Defender for MySQL") and select Save.
This page in the portal will be the same regardless of the database type (PostgreSQL, MySQL, or MariaDB).
Respond to security alerts
When Azure Defender is enabled on your database, it detects anomalous activities and generates alerts. These alerts are available from multiple locations, including:
- In the Azure portal:
- Azure Defender security alerts page - Shows alerts for all resources protected by Azure Defender in the subscriptions you've got permissions to view.
- The resource's Security Center page - Shows alerts and recommendations for one specific resource, as shown above in Enable Azure Defender.
- In the inbox of whoever in your organization has been designated to receive email alerts.
A live tile on Azure Security Center's overview dashboard tracks the status of active threats to all your resources including databases. Select the tile to launch the Azure Defender alerts page and get an overview of active threats detected on your databases.
For detailed steps and the recommended method to respond to Azure Defender alerts, see Respond to a security alert.
Respond to email notifications of security alerts
Azure Defender sends email notifications when it detects anomalous database activities. The email includes details of the suspicious security event such as the nature of the anomalous activities, database name, server name, application name, and event time. The email also provides information on possible causes and recommended actions to investigate and mitigate any potential threats to the database.
Select the View the full alert link in the email to launch the Azure portal and show the alerts page, which provides an overview of active threats detected on the database.
View active threats at the subscription level from within the Security Center portal pages:
For additional details and recommended actions for investigating the current threat and remediating future threats, select a specific alert.
For a detailed tutorial on how to handle your alerts, see Tutorial: Triage, investigate, and respond to security alerts.