Edit

System assigned managed identity

This article provides step-by-step instructions to enable or disable a system assigned managed identity for an Azure Database for PostgreSQL flexible server.

Steps to enable for existing servers

Using the Azure portal:

  1. Select your Azure Database for PostgreSQL flexible server.

  2. In the resource menu, under Security, select Identity.

    Screenshot showing the Identity page of an Azure Database for PostgreSQL flexible server.

  3. In the System assigned managed identity section, select On.

    Screenshot showing where you can enable the system assigned managed identity of an Azure Database for PostgreSQL flexible server.

  4. Select Save.

    Screenshot showing the Save button after having enabled the system assigned managed identity of an Azure Database for PostgreSQL flexible server.

  5. If the server has data encryption configured to use customer managed keys, you can't disable the system assigned managed identity of the server after you enable it. For that reason, if the portal detects this condition, it asks you to confirm that you want to enable the system assigned managed identity.

    Screenshot showing the confirmation dialog that appears when the data encryption of the server is configured to use customer managed keys.

  6. When the process starts, a notification informs you that the system assigned managed identity is being enabled.

    Screenshot showing the notification informing that the system assigned managed identity is being enabled.

  7. When the process finishes, a notification informs you that the system assigned managed identity is enabled.

    Screenshot showing the notification informing that the system assigned managed identity is enabled.

Steps to disable for existing servers

Using the Azure portal:

  1. Select your Azure Database for PostgreSQL flexible server.

  2. In the resource menu, under Security, select Identity.

    Screenshot showing the Identity page of an Azure Database for PostgreSQL flexible server.

  3. In the System assigned managed identity section, select Off.

    Screenshot showing where you can disable the system assigned managed identity of an Azure Database for PostgreSQL flexible server.

  4. Select Save.

    Screenshot showing the Save button after having disabled the system assigned managed identity of an Azure Database for PostgreSQL flexible server.

  5. When the process starts, a notification informs you that the system assigned managed identity is being disabled.

    Screenshot showing the notification informing that the system assigned managed identity is being disabled.

  6. When the process finishes, a notification informs you that the system assigned managed identity is disabled.

    Screenshot showing the notification informing that the system assigned managed identity is disabled.

Steps to show currently assigned

Using the Azure portal:

  1. Select your Azure Database for PostgreSQL flexible server.

  2. In the resource menu, select Overview.

    Screenshot showing the Overview page of an Azure Database for PostgreSQL flexible server.

  3. Select JSON View.

    Screenshot showing how to select JSON View on an Azure Database for PostgreSQL flexible server.

  4. In the Resource JSON panel that opens, find the identity property. Inside it, you can find the principalId and tenantId for the system assigned managed identity.

    Screenshot that shows where to find the principalId and tenantId of the system assigned managed identity.

Steps to verify in Microsoft Entra ID

Using the Azure portal:

  1. Locate the Enterprise Applications service in the portal, if you don't have it open. One way to do it is by typing its name in the search bar. When the service with the matching name is shown, select it.

    Screenshot that shows how to search for the Enterprise applications service using the search bar in the Azure portal.

  2. Choose Application Type == Managed Identity.

  3. Provide the name of your Azure Database for PostgreSQL flexible server in the Search by application name or object ID text box.

    Screenshot that shows how to search for a managed identity using the Enterprise applications service interface in the Azure portal.