Edit

Enable Defender for open-source relational databases on Azure

Use Microsoft Defender for open-source relational databases to detect anomalous activity on Azure Database for PostgreSQL and Azure Database for MySQL. This article explains the prerequisites and the steps to enable the plan in Azure.

Microsoft Defender for Cloud detects anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases for the following services:

To get alerts from this Microsoft Defender plan, enable Defender for open-source relational databases in Azure by following these steps.

Learn more about this Microsoft Defender plan in Overview of Microsoft Defender for open-source relational databases.

Prerequisites

Before you enable Defender for open-source relational databases, make sure you meet the following requirements:

Enable Defender for open-source relational databases on your Azure subscription

To enable Defender for open-source relational databases on your Azure subscription:

  1. Sign in to the Azure portal.

  2. Search for and select Azure Database for MySQL servers or Azure Database for PostgreSQL servers.

  3. Select the relevant database server.

  4. Expand the Security menu.

  5. Select Microsoft Defender for Cloud.

  6. If Defender for open-source relational databases isn't enabled, select Enable Microsoft Defender for [Database type] (for example, "Microsoft Defender for MySQL").

    Screenshot of the Azure Database for MySQL server page with the Enable Microsoft Defender for MySQL button highlighted.

    Tip

    This page in the portal is the same for PostgreSQL and MySQL.

  7. Select Save.

Next step