https://pulumi.com logo
#azure
Title
# azure
r

ripe-xylophone-26538

01/24/2024, 11:45 AM
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

clever-sunset-76585

01/24/2024, 4:33 PM
The zone name looks right to me. Are you setting the
location
property to
global
?
r

ripe-xylophone-26538

01/25/2024, 8:59 AM
yeah did that. any other idea?
should I open an issue on github?
c

clever-sunset-76585

01/25/2024, 5:00 PM
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

loud-nightfall-65725

02/20/2024, 9:18 AM
I'm stuck here too. All combinations I've tried are invalid.
4 Views