Azure PostgreSQL
Arguments
AzurePostgreSQL DBMS and Database
id
Required
displayName
description
version
locked
links
rootUser
Required
region
Required
skuName
Required
storageAutoGrow
Required
storageMB
Required
backupRetentionDays
Required
databases
Required
Example
Azure LiveSystem with PostgreSQL DBMS and Database
LiveSystem.builder()
.withName("postgresql")
.withDescription("PostgreSQL server and database")
.withResourceGroupId("test-resource-group")
.withComponent(AzurePostgreSQL.builder()
.withId(ComponentId.from("azure-psg"))
.withRegion(EUROPE_WEST)
.withRootUser("rootUser")
.withSkuName(B_GEN5_1)
.withStorageAutoGrow(ENABLED)
.withStorageMB(5 * 1024)
.withBackupRetentionDays(12)
.withDatabase(PostgreSQLDB.builder()
.withId(ComponentId.from("db-1"))
.withName("db")
.withCharset(UTF8)
.withCollation("English_United States.1252")
.withSchema("app")
.build())
.build())
.withEnvironment(Environment.builder()
.withId("efd7bcb5-7110-4369-859e-a7aab0c7f38c")
.withDisplayName("My Environment")
.withParentId("67f29f6b-fc23-4d30-9128-da5222444443")
.withParentType("tenant")
.build())
.build();