This message was deleted.
# azure
s
This message was deleted.
w
@tall-librarian-49374 do you know what might be causing this?
t
I do not
w
hm.. bummer 🙂
Anyone that have a working example of postgresql on Azure? I can't get the sample in the link in the post to work.
w
FWIW, I tested the typescript version just now and received a couple of errors about the names. Specifically, the DB server, apparently, can't have upper case, so I changed it to
exampleserver
and the configuration name was too long when uniquified by pulumi. So I changed it to
exConf
and it worked. I wonder if for some reason the C# use-case is hiding those errors and so it fails downstream.
I lied - I too am seeing the configuration does not exist error. (I didn't wait long enough to see it.)
OK, so the problem is that the example does not have a
name
attribute in the Configuration definition. So, the code defaults to the name of the configuration. However, that
name
parameter needs to be a name of Postgres configuration option (e.g.
backslash_quote
) Example:
Copy code
const exampleConfiguration = new azure.postgresql.Configuration('mitchCfg', {
  name: 'backslash_quote',
  resourceGroupName: exampleResourceGroup.name,
  serverName: exampleServer.name,
  value: 'off',
});
In the Azure portal, if you look at the
server parameters
view for the PostgresSQL server, you'll see the options names that can be used when setting the configuration. Also, I'll get the documentation updated accordingly.
👍 1