Hello, when using Azure postgres db, anyone know h...
# azure
a
Hello, when using Azure postgres db, anyone know how I would go about replicating this in Pulumi?
Copy code
GRANT azure_pg_admin TO <new_user>;
i
Are you on Single or Flexible server?
Pulumi.AzureNative.DBforPostgreSQL.ServerAdministrator
I know there is this one for SingleServer
a
Found it.
Copy code
postgresql.GrantRole("grant role azure_pg_admin",
                     grant_role="azure_pg_admin",
                     role=role.name,
                     opts=ResourceOptions(
                         provider=pg_provider
                     )
                     )
i
If i'm not mistaken, this approach only works if your server is connected to the internet. If your postgres server (flexible in my case) is only accessable within a vpc, then you can't use the pulumi postgresql library.