Add DNS management to firewall rules configuration
Usually pg_hba.conf accepts DNS names so you can use i.e. my.address.ip for .... In Azure portal you can input only numeric IP addresses but this presumes you have staic public IP address. Allowing DNS management you would be able to use Dynamic DNS solving non static public IP address problem.