Edit

Share via


Promote read replica to standalone server

APPLIES TO: Azure Database for PostgreSQL - Flexible Server

This article provides step-by-step instructions to switch over a read replica of an Azure Database for PostgreSQL flexible server so that it becomes the new primary server of the replication set.

Steps to promote replica to standalone server

Using the Azure portal:

  1. Select the Azure Database for PostgreSQL flexible server for which you want to show its associated virtual endpoints.

  2. In the resource menu, under the Settings section, select Replication.

    Screenshot showing the Replication page with read replicas.

  3. Select the Promote icon to the side of the name of the endpoint of the read replica to which you want to switch over.

    Screenshot showing the Switch over or Promote to standalone pane.

  4. In Replica server to promote, select Promote to independent server and remove from replication. This won't impact the primary server. for Action. And select Planned or Forced for Data sync, depending on what suits your needs best. if you decide to use the Planned option, you have to mark the I understand that this read replica will become an independent server and that this action can't be undone. to acknowledge that the read replica will be detached into its own standalone entity. If you decide to use the Forced option, you have to mark the I understand that this read replica will become an independent server and that its data won't be synced first. This action can't be undone. checkbox to also acknowledge the potential data loss. Finally, select Promote.

    Screenshot showing the Promote to standalone pane.

  5. A notification informs you that the read replica is being promoted to a standalone server.

    Screenshot showing a notification informing that the read replica is being promoted to a standalone server.

  6. When the process completes, a notification informs you that the read replica successfully promoted to a standalone server.

    Screenshot showing a notification informing that the read replica promoted to a standalone server successfully.