Am I blind or can't I create a postgres db for cos...
# azure
w
Am I blind or can't I create a postgres db for cosmos with pulumi? I find the arm definition here: https://learn.microsoft.com/en-us/azure/templates/microsoft.dbforpostgresql/servergroupsv2?pivots=deployment-language-arm-template, but I can't find the corresponding on in pulumi.
c
yeah, can't find
serverGroupsv2
in even the latest package
@pulumi/azure-native/dbforpostgresql/v20230301preview
w
Just read here that the resource is read only: https://learn.microsoft.com/en-us/azure/templates/microsoft.dbforpostgresql/2022-11-08/servergroupsv2/servers?pivots=deployment-language-arm-template Does that mean that the only way to create a Postgres cosmos instance is through the portal?
c
no, that means the
/servers
resource is a child of the
serverGroupsv2
resource and Azure deploys the
server
resource automatically after you deployed a
serverGroupsv2
resource. You don't create the server, only the group
not sure why it's not in Pulumi though
w
I just realized that as well.
@tall-librarian-49374 , do you know?
I think I figured it out, seems like it is the Cluster that should be used...
t
It sounds like you solved it. Let me know if you need any help.