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.
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.