How are you managing PostgreSQL / MSSQL (in Azure,...
# general
b
How are you managing PostgreSQL / MSSQL (in Azure, if possible) users, roles, and grants with Pulumi?
m
For Azure, you would use the resources in the Azure Native provider (mssql, postgres). These are built from the Azure API spec, so they’re mostly equivalent to ARM templates. For users, roles, and such, you might need to use the Azure AD provider in addition.
b
I wonder how many people use those Azure native providers for Postgresql. They only offer you the ability to create databases and roles, nothing else. Also, the fact that the pulumi Postgres native provider does not allow importing, makes it difficult to manage dbs, users, roles, and grants with pulumi.
m
Yeah, I understand it’s incomplete. We’re limited by what the Azure API spec exposes (see here). Anything else we’d have to add manually, which we do occasionally with enough demand. What do you mean by importing in this context?
b
Yes, I know the main limitations come from Azure API. Regarding importing I mean that the native Pulumi PostgreSQL provider does not allow to import of existing databases, users, roles, or grants.
m
It does allow importing existing Databases. Any resource the Pulumi provider offers it should also be able to import. Not the other entities you mention, though.
b
For the import topic, I am talking about pulumi-postgresql, not about the Azure native provider.
I mean, azure_native.dbforpostgresql is really limited, so you could user pulumi-postgresql provider to do other stuff on top of an Azure postgresql server. BUT, the pulumi-postgresql does not allow importing existing resources, or at least is not in the docs.
ok, I think that pulumi docs are missing the import docs, as that provider is from terraform..