Looks like they may be separate resource types? I ...
# azure
i
Looks like they may be separate resource types? I see in Terraform:
Copy code
azurerm_postgresql_flexible_server
azurerm_postgresql_server
does Pulumi not support flexible server?
the one listed in pulumi is “Single Server” bottom left
t
Azure modeled it in a weird way in ARM. You have to use an explicit API version (take the latest) to get flexible servers.
i
do you know which API Version?
i
Not actually sure how to search through the different versions via the docs site
thanks! ill give this a shot
m
Patrick, let us know how it worked out!
l
I’m having the same issues. Couldn’t find any docs on how to create flexible servers. Is this something temporary? Are there any plans to add Flexible Server to the stable version? Azure is sunsetting Single Servers soon.
@many-telephone-49025 how do I see the docs for this version and the properties for the server?
m
Currently the API Docs don't reflect different API versions. We are working on this, so currently you need to use the autcomplete of your IDE or the ARM config at MS.
i
@lively-dress-88835 where did you hear this: “Azure is sunsetting Single Servers soon.” - I see this for MySQL, but can’t find for PostgreSQL
interestingly had a call with Microsoft database team yesterday and they confirmed this is the case for Single Server on Postgresql too
@many-telephone-49025 @tall-librarian-49374 - any idea what the config is to enable AAD login (or mixed AAD / PSQL Login)? Really wish there were some docs for flexible server …
m
H @icy-doctor-13719, is it not the
authConfig
to activate the Azure AD auth?
i
I tried that first but:
'ServerArgs' does not contain a definition for 'AuthConfig'
also - i hoped doing a
pulumi refresh
would help me see the naming convention … but it didnt pick up on the aad auth property. Perhaps its a different resource or something. Is there any way to see the API spec for that
V20200214Preview
version?
m
Did you use the latest api-version?
i
it doesnt seem to be present in the latest one (last time I checked)
m
import * as database from "@Pulumi Team/azure-native/dbforpostgresql/v20221201";
i
I can try that version
m
image.png
Sorry with the confusion of
latest
latest for MS is
2022-12-01
i
checking if that one works -
m
😄
i
Strange … do you have to do something special for it to pick up?
Copy code
error CS0234: The type or namespace name 'V20221201' does not exist in the namespace 'Pulumi.AzureNative.DBforPostgreSQL'
(using C#)
m
Ah 😄 Just wanted to ask
In c# I do this
In the import/using line
i
Same deal. I tried the other version you mentioned too
error CS0234: The type or namespace name 'V20221201' does not exist in the namespace 'Pulumi.AzureNative.DBforPostgreSQL'
usually it ‘just works’
m
ok
m
check if you are using: `<PackageReference Include="Pulumi.AzureNative" Version="1.92.0" />``
i
Ill try one of these:
guess 2022-03-08-PrivatePreview may be newest
m
For me it works
witout errors, so look to use the latest version of the lib and restore your config
i
bingo 😄 thanks so much!
m
I love/hate Azure for this API shenanigans 😄
i
yea, for real … would be awesome if we could switch between the versions on the docs site too 😇