@tall-librarian-49374, I take it here to be more specific instead. I managed to create the cluster but I'm failing with adding a firewall rule... Done this to other resources before without any problem, but not here. Key part of my code:
import {
Cluster,
Role,
FirewallRule,
} from "@pulumi/azure-native/dbforpostgresql";
const server = new Cluster(
"dbserver",
{
administratorLoginPassword: password.result,
location: "westeurope",
coordinatorServerEdition: "GeneralPurpose",
coordinatorStorageQuotaInMb: 524288,
citusVersion: "11.1",
coordinatorVCores: 2,
nodeVCores: 4,
postgresqlVersion: "14",
nodeCount: 0,
resourceGroupName: environmentConfig.azureConnections[0].resourceGroupName,
},
{ provider: azureProvider }
);
const firewallRules = whitelistedIps.map((setting) => {
return new FirewallRule(
`whitelist-${setting.name}`,
{
resourceGroupName:
environmentConfig.azureConnections[0].resourceGroupName,
serverName: server.name,
startIpAddress: setting.ip,
endIpAddress: setting.ip,
},
{ provider: azureProvider }
);
});