Hi, trying to create felxibledbserver. Any idea wh...
# azure
t
Hi, trying to create felxibledbserver. Any idea why dbforpostgresql.ServerVersion.SERVER_VERSION_14 and SERVER_VERSION_15, SERVER_VERSION_16 are missing? How do I create flexibledbserver with postgresql 16 ?
t
The
version
property accepts any string, you should be able to pass "16" there: https://github.com/pulumi/pulumi-azure-native/blob/master/sdk/nodejs/dbforpostgresql/server.ts#L297
t
tnx. Would be nice to see that manifested into the consts in the next pulumi version.
a
SERVER_VERSION_16 becomes part of the ServerVersion enum in the
dbforpostgresql.v20230601preview
API with the newest Azure API version for the provider being
v20231201preview
. Also if you want to be able to provision the most recent options (SSD v2, IOPS etc.) you'd have to use at least >
v20230301preview
. Depends on your language, but here is how I import that in Python:
Copy code
from pulumi_azure_native.dbforpostgresql import (
    v20231201preview as postgres, # For 
)