Skip to content

Commit f207b26

Browse files
committed
upates scenario for using virtual endpoint for PITR or snapshot restores
1 parent 798f861 commit f207b26

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

articles/postgresql/flexible-server/concepts-read-replicas-virtual-endpoints.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article describes the virtual endpoints for read replica featu
44
author: AlicjaKucharczyk
55
ms.author: alkuchar
66
ms.reviewer: maghan
7-
ms.date: 04/27/2024
7+
ms.date: 6/5/2024
88
ms.service: postgresql
99
ms.subservice: flexible-server
1010
ms.topic: conceptual
@@ -52,11 +52,33 @@ The sections below delve into how these endpoints react to both [Promote to prim
5252
* **If Read-Only Endpoint Points to Replica**: The Read-Only endpoint is redirected from the promoted replica to point to the primary server.
5353
* **If Read-Only Endpoint Points to Primary**: The Read-Only endpoint remains unchanged, continuing to point to the same server.
5454

55+
### Using Virtual Endpoints for Consistent Hostname During Point-in-Time Recovery (PITR) or Snapshot Restore
5556

56-
Learn how to [create virtual endpoints](how-to-read-replicas-portal.md#create-virtual-endpoints).
57+
This section explains how to use Virtual Endpoints in Azure Database for PostgreSQL - Flexible Server to maintain a consistent hostname during Point-in-Time Recovery (PITR) or Snapshot Restore, ensuring application connection strings remain unchanged.
58+
59+
### Steps:
60+
1. Add Virtual Endpoint to Primary Server:
61+
- Browse to your primary server instance in the Azure Portal.
62+
- Navigate to “Replication” Tab, and under "Virtual Endpoints," click "Add Virtual Endpoint."
63+
- Configure the virtual endpoint with a consistent hostname (e.g., `mydb-virtual-endpoint.postgres.database.azure.com`).
64+
- Save the configuration.
65+
- Update your application to use this virtual endpoint in the connection string.
66+
67+
2. Perform Point-in-Time-Restore (PITR) or Snapshot Restore:
68+
- Initiate Recovery:
69+
- Go to the "Backups" section of your primary server.
70+
- Choose the appropriate restore option (PITR or snapshot) and specify the desired point in time.
71+
- Update Virtual Endpoint:
72+
- Once the new instance is created, navigate back to the primary server settings.
73+
- Remove the virtual endpoint from the original primary server.
74+
- Add the same virtual endpoint to the newly created server.
75+
76+
3. Validation:
77+
- Ensure that your application connects using the virtual endpoint and verify the database operations post-recovery.
5778

5879
## Related content
5980

81+
- [create virtual endpoints](how-to-read-replicas-portal.md#create-virtual-endpoints).
6082
- [Read replicas - overview](concepts-read-replicas.md)
6183
- [Geo-replication](concepts-read-replicas-geo.md)
6284
- [Promote read replicas](concepts-read-replicas-promote.md)

0 commit comments

Comments
 (0)