Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article provides step-by-step instructions to create virtual endpoints for an Azure Database for PostgreSQL flexible server.
Steps to create virtual endpoints
Using the Azure portal:
Select the Azure Database for PostgreSQL flexible server for which you want to create virtual endpoints.
Select the Azure Database for PostgreSQL flexible server for which you want to create virtual endpoints.
In the resource menu, under the Settings section, select Replication.
In the resource menu, under the Settings section, select Replication.
In the Virtual endpoints section, select Create virtual endpoints.
The two fully qualified domain name aliases (CNAME) records that get created when you create virtual endpoints follow this pattern:
<virtual-endpoints-base-name>.writer.postgres.database.azure.comand<virtual-endpoints-base-name>.reader.postgres.database.azure.com. In the Create virtual endpoints dialog, in the Virtual endpoints base name, enter a meaningful name that isn't already taken by another server.The two fully qualified domain name aliases (CNAME) records that get created when you create virtual endpoints follow this pattern:
<virtual-endpoints-base-name>.writer.postgres.database.azure.comand<virtual-endpoints-base-name>.reader.postgres.database.azure.com. In the Create virtual endpoints dialog, in the Virtual endpoints base name, enter a meaningful name that isn't already taken by another server.The Target of writer virtual endpoint always points to the primary server, because it's the only server that supports user-initiated write operations. If the server where you're creating the virtual endpoints doesn't have any read replica, the Target of reader virtual endpoint also points to the primary server. However, if the server where you're creating the virtual endpoints has some read replicas, Target of reader virtual endpoint points to one of the read replicas by default. You can change it to point to the primary server or to any other read replica, as long as there's more than one.
The Target of writer virtual endpoint always points to the primary server, because it's the only server that supports user-initiated write operations. If the server where you're creating the virtual endpoints doesn't have any read replica, the Target of reader virtual endpoint also points to the primary server. However, if the server where you're creating the virtual endpoints has some read replicas, Target of reader virtual endpoint points to one of the read replicas by default. You can change it to point to the primary server or to any other read replica, as long as there's more than one.
Select Create.
Select Create.
A notification informs you that the virtual endpoints are being created.
A notification informs you that the virtual endpoints are being created.
When the process finishes, a notification informs you that the virtual endpoints were successfully created.
When the process finishes, a notification informs you that the virtual endpoints were successfully created.