Anyone ever managed to deploy postgresql flexible ...
# azure
r
Anyone ever managed to deploy postgresql flexible server with private networking? I am constantly seeing
PrivateDnsZoneHasWrongZoneSuffix
or
PrivateDnsZoneNameNotValid
. Can someone show me a proper example on how to set this up? I am lost.
e.g. once it says
Copy code
error: 1 error occurred:
        * Code="PrivateDnsZoneHasWrongZoneSuffix" Message="The Private DNS Zone name provided is not valid. It has to end with company-scraper-pg."
and another time it says
Copy code
error: 1 error occurred:
        * Code="PrivateDnsZoneNameNotValid" Message="The Private DNS Zone name provided [<http://company-scraper-pg.postgres.database.azure.com|company-scraper-pg.postgres.database.azure.com>] is not valid. It can not be server name plus zone suffix."
So I am lacking options here
c
The zone name looks right to me. Are you setting the
location
property to
global
?
r
yeah did that. any other idea?
should I open an issue on github?
c
Oh I just remembered something and it is do with that second error message. You cannot use the name of the server as the prefix for the private DNS zone name. Give it a unique name --
company-scraper-pg*-internal*.<http://postgres.database.azure.com|postgres.database.azure.com>
for example.
l
I'm stuck here too. All combinations I've tried are invalid.