Skip to content

Commit

Permalink
feat(azure): adjust SKU and storage for yt01 and prod
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas committed Nov 21, 2024
1 parent 4a7705a commit 45f229f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .azure/infrastructure/prod.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ param postgresConfiguration = {
}
storage: {
storageSizeGB: 256
iops: 1100
autoGrow: 'Enabled'
tier: 'Premium'
tier: 'P15'
type: 'Premium_LRS'
}
enableIndexTuning: false
enableQueryPerformanceInsight: false
Expand Down
1 change: 1 addition & 0 deletions .azure/infrastructure/staging.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ param postgresConfiguration = {
storage: {
storageSizeGB: 32
autoGrow: 'Enabled'
type: 'Premium_LRS'
}
enableIndexTuning: false
enableQueryPerformanceInsight: true
Expand Down
1 change: 1 addition & 0 deletions .azure/infrastructure/test.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ param postgresConfiguration = {
storage: {
storageSizeGB: 32
autoGrow: 'Enabled'
type: 'Premium_LRS'
}
enableIndexTuning: false
enableQueryPerformanceInsight: true
Expand Down
4 changes: 2 additions & 2 deletions .azure/infrastructure/yt01.bicepparam
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ param postgresConfiguration = {
}
storage: {
storageSizeGB: 256
iops: 1100
autoGrow: 'Enabled'
tier: 'Premium'
tier: 'P15'
type: 'Premium_LRS'
}
enableIndexTuning: true
enableQueryPerformanceInsight: true
Expand Down
6 changes: 3 additions & 3 deletions .azure/modules/postgreSql/create.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ param sku Sku
@export()
type StorageConfiguration = {
storageSizeGB: int
iops: int?
autoGrow: 'Enabled' | 'Disabled'
tier: 'Premium'? // For burstable skus, this is not supported
type: 'Premium_LRS' | 'PremiumV2_LRS'
tier: 'P1' | 'P2' | 'P3' | 'P4' | 'P6' | 'P10' | 'P15' | 'P20' | 'P30' | 'P40' | 'P50' | 'P60' | 'P70' | 'P80' | null
}

@description('The storage configuration for the PostgreSQL server')
Expand Down Expand Up @@ -108,7 +108,7 @@ resource postgres 'Microsoft.DBforPostgreSQL/flexibleServers@2024-08-01' = {
storage: {
storageSizeGB: storage.storageSizeGB
autoGrow: storage.autoGrow
iops: storage.iops
type: storage.type
tier: storage.tier
}
dataEncryption: {
Expand Down

0 comments on commit 45f229f

Please sign in to comment.