resource "random_password" "pass" { length = 20 } resource "azurerm_postgresql_flexible_server" "default" { name = "doob-tf-pg" resource_group_name = var.resource_group location = var.location version = "16" public_network_access_enabled = true administrator_login = "adminTerraform" administrator_password = random_password.pass.result zone = "1" storage_mb = 32768 storage_tier = "P4" sku_name = "B_Standard_B1ms" backup_retention_days = 7 }