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

enough-kite-69616

06/25/2020, 7:58 PM
Changed my config to create an azure.postgresql.Database (instead of azure.sql.Database), now I'm getting this:
Copy code
postgresql:index:Role (ground-control-db): error: Error initializing PostgreSQL client: error detecting capabilities: error PostgreSQL version: dial tcp: lookup ground-control-db-server on 8.8.8.8:53: no such host
g

gentle-diamond-70147

06/25/2020, 8:01 PM
I think the
host
that you're specifying is not the fully formed DNS name.
Something like
${server.name}.<http://database.windows.net|database.windows.net>
is needed I believe.
Here's an example - https://github.com/pulumi/examples/blob/5bcf9de17a660f17172ca05d4ca3f061456a99c5/azure-ts-appservice/index.ts#L95, but that full string is not the same format that the postgresql provider needs AFAIK.
e

enough-kite-69616

06/25/2020, 8:44 PM
So replace
server.name
with
server.fqdn
in the database config?
Ah, the provider
3 Views