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

wet-noon-14291

11/21/2023, 11:56 PM
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

colossal-room-15708

11/22/2023, 12:14 AM
yeah, can't find
serverGroupsv2
in even the latest package
@pulumi/azure-native/dbforpostgresql/v20230301preview
w

wet-noon-14291

11/22/2023, 12:26 AM
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

colossal-room-15708

11/22/2023, 12:28 AM
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

wet-noon-14291

11/22/2023, 12:28 AM
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

tall-librarian-49374

11/22/2023, 11:38 AM
It sounds like you solved it. Let me know if you need any help.