https://pulumi.com logo
Title
i

icy-doctor-13719

01/09/2023, 10:44 PM
Looks like they may be separate resource types? I see in Terraform:
azurerm_postgresql_flexible_server
azurerm_postgresql_server
does Pulumi not support flexible server?
the one listed in pulumi is “Single Server” bottom left
t

tall-librarian-49374

01/09/2023, 10:51 PM
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

icy-doctor-13719

01/09/2023, 10:51 PM
do you know which API Version?
i

icy-doctor-13719

01/09/2023, 10:53 PM
Not actually sure how to search through the different versions via the docs site
thanks! ill give this a shot
m

many-telephone-49025

01/10/2023, 9:38 AM
Patrick, let us know how it worked out!
l

lively-dress-88835

01/11/2023, 8:54 AM
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

many-telephone-49025

01/11/2023, 1:27 PM
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

icy-doctor-13719

01/11/2023, 5:08 PM
@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

many-telephone-49025

01/24/2023, 9:44 AM
H @icy-doctor-13719, is it not the
authConfig
to activate the Azure AD auth?
i

icy-doctor-13719

01/24/2023, 7:06 PM
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

many-telephone-49025

01/24/2023, 7:09 PM
Did you use the latest api-version?
i

icy-doctor-13719

01/24/2023, 7:09 PM
it doesnt seem to be present in the latest one (last time I checked)
m

many-telephone-49025

01/24/2023, 7:09 PM
import * as database from "@Pulumi Team/azure-native/dbforpostgresql/v20221201";
i

icy-doctor-13719

01/24/2023, 7:11 PM
I can try that version
m

many-telephone-49025

01/24/2023, 7:11 PM
image.png
Sorry with the confusion of
latest
latest for MS is
2022-12-01
i

icy-doctor-13719

01/24/2023, 7:12 PM
checking if that one works -
m

many-telephone-49025

01/24/2023, 7:12 PM
😄
i

icy-doctor-13719

01/24/2023, 7:14 PM
Strange … do you have to do something special for it to pick up?
error CS0234: The type or namespace name 'V20221201' does not exist in the namespace 'Pulumi.AzureNative.DBforPostgreSQL'
(using C#)
m

many-telephone-49025

01/24/2023, 7:15 PM
Ah 😄 Just wanted to ask
In c# I do this
In the import/using line
i

icy-doctor-13719

01/24/2023, 7:20 PM
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

many-telephone-49025

01/24/2023, 7:22 PM
ok
m

many-telephone-49025

01/24/2023, 7:25 PM
check if you are using: `<PackageReference Include="Pulumi.AzureNative" Version="1.92.0" />``
i

icy-doctor-13719

01/24/2023, 7:26 PM
Ill try one of these:
guess 2022-03-08-PrivatePreview may be newest
m

many-telephone-49025

01/24/2023, 7:26 PM
For me it works
witout errors, so look to use the latest version of the lib and restore your config
i

icy-doctor-13719

01/24/2023, 7:28 PM
bingo 😄 thanks so much!
m

many-telephone-49025

01/24/2023, 7:29 PM
I love/hate Azure for this API shenanigans 😄
i

icy-doctor-13719

01/24/2023, 7:29 PM
yea, for real … would be awesome if we could switch between the versions on the docs site too 😇