PostgreSQL with read replica in same delegated subnet

Nowak, Wawrzyniec 20 Reputation points
2024-03-23T05:35:12.85+00:00

Hi, as far as I understand I can assign both main PostgreSQL flexible server and its Read Replica to the same delegated subnet. Should I somehow add some configuration or Azure will be smart enough to assign free IPs from the subnet to the Replica?

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,228 questions
Azure Database for PostgreSQL
0 comments No comments
{count} votes

Accepted answer
  1. Deepanshu katara 6,245 Reputation points
    2024-03-23T07:04:35.1866667+00:00

    Hi,

    In Azure Database for PostgreSQL, when you create a Flexible Server and its associated Read Replica in the same delegated subnet, Azure will manage the IP address assignment for you. You do not need to configure IP addresses manually.

    Azure will automatically assign IP addresses from the subnet to both the main PostgreSQL Flexible Server and its Read Replica, ensuring that they have unique IP addresses within the subnet. This process is managed by Azure's networking infrastructure and is transparent to you as the user.

    User's image

    Please check doc for ref-->https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-networking-private#replication-across-azure-regions-and-virtual-networks-with-private-networking

    Kindly accept answer if it helps.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful