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

witty-vegetable-61961

09/07/2023, 1:03 PM
HI all, I have this code to create an Azure postgres flexible db server, but nothing gets created: ResourceGroupName = resourceGroup.Name, AdministratorLogin = "cloudsa", Version = "15", CreateMode = "Create", AdministratorLoginPassword = "password1!@@!!s", // this is not the real password, but I used one which is validated in the portal ServerName = "kinderworxhealthcheckpgs-dev", Sku = new Pulumi.AzureNative.DBforPostgreSQL.Inputs.SkuArgs { Name = "Standard_B1ms", Tier = "GeneralPurpose", }, HighAvailability = new Pulumi.AzureNative.DBforPostgreSQL.Inputs.HighAvailabilityArgs { Mode = "ZoneRedundant", }, Storage = new Pulumi.AzureNative.DBforPostgreSQL.Inputs.StorageArgs { StorageSizeGB = 32, },
m

melodic-tomato-39005

09/07/2023, 2:36 PM
Hi Gurdip, can you tell us what command(s) you’re running and what the output is?
w

witty-vegetable-61961

09/07/2023, 2:57 PM
Hi I got this to work with this code: var server = new Pulumi.AzureNative.DBforPostgreSQL.Server("server", new() { AdministratorLogin = "cloudsa", AdministratorLoginPassword = "password", AvailabilityZone = "1", Backup = new Pulumi.AzureNative.DBforPostgreSQL.Inputs.BackupArgs { BackupRetentionDays = 7, GeoRedundantBackup = "Disabled", }, CreateMode = "Create", Location = "uksouth", ResourceGroupName = resourceGroup.Name, ServerName = "kinderworxhealthcheckdbpgsql-dev", Sku = new Pulumi.AzureNative.DBforPostgreSQL.Inputs.SkuArgs { Name = "Standard_D4s_v3", Tier = "GeneralPurpose", }, Storage = new Pulumi.AzureNative.DBforPostgreSQL.Inputs.StorageArgs { StorageSizeGB = 512, }, Tags = { { "ElasticServer", "1" }, }, Version = "15", });
2 Views