Commit b7e4909 1 parent 9cd6385 commit b7e4909 Copy full SHA for b7e4909
File tree 6 files changed +44
-5
lines changed
6 files changed +44
-5
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,11 @@ import { Sku as SlackNotifierSku } from '../modules/functionApp/slackNotifier.bi
55
55
param slackNotifierSku SlackNotifierSku
56
56
57
57
import { Sku as PostgresSku } from '../modules/postgreSql/create.bicep'
58
+ import { StorageConfiguration as PostgresStorageConfig } from '../modules/postgreSql/create.bicep'
58
59
59
60
param postgresConfiguration {
60
61
sku : PostgresSku
62
+ storage : PostgresStorageConfig
61
63
enableIndexTuning : bool
62
64
enableQueryPerformanceInsight : bool
63
65
}
@@ -215,6 +217,7 @@ module postgresql '../modules/postgreSql/create.bicep' = {
215
217
? srcKeyVaultResource .getSecret ('dialogportenPgAdminPassword${environment }' )
216
218
: secrets .dialogportenPgAdminPassword
217
219
sku : postgresConfiguration .sku
220
+ storage : postgresConfiguration .storage
218
221
appInsightWorkspaceName : appInsights .outputs .appInsightsWorkspaceName
219
222
enableIndexTuning : postgresConfiguration .enableIndexTuning
220
223
enableQueryPerformanceInsight : postgresConfiguration .enableQueryPerformanceInsight
Original file line number Diff line number Diff line change @@ -31,11 +31,17 @@ param slackNotifierSku = {
31
31
}
32
32
param postgresConfiguration = {
33
33
sku : {
34
- name : 'Standard_D4ads_v5 '
34
+ name : 'Standard_D8ads_v5 '
35
35
tier : 'GeneralPurpose'
36
36
}
37
- enableQueryPerformanceInsight : false
37
+ storage : {
38
+ storageSizeGB : 256
39
+ iops : 1100
40
+ autoGrow : 'Enabled'
41
+ tier : 'Premium'
42
+ }
38
43
enableIndexTuning : false
44
+ enableQueryPerformanceInsight : false
39
45
}
40
46
41
47
param redisSku = {
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ param postgresConfiguration = {
34
34
name : 'Standard_B1ms'
35
35
tier : 'Burstable'
36
36
}
37
+ storage : {
38
+ storageSizeGB : 32
39
+ autoGrow : 'Enabled'
40
+ }
37
41
enableIndexTuning : false
38
42
enableQueryPerformanceInsight : true
39
43
}
Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ param postgresConfiguration = {
34
34
name : 'Standard_B2s'
35
35
tier : 'Burstable'
36
36
}
37
+ storage : {
38
+ storageSizeGB : 32
39
+ autoGrow : 'Enabled'
40
+ }
37
41
enableIndexTuning : false
38
42
enableQueryPerformanceInsight : true
39
43
}
Original file line number Diff line number Diff line change @@ -31,9 +31,15 @@ param slackNotifierSku = {
31
31
}
32
32
param postgresConfiguration = {
33
33
sku : {
34
- name : 'Standard_D4ads_v5 '
34
+ name : 'Standard_D8ads_v5 '
35
35
tier : 'GeneralPurpose'
36
36
}
37
+ storage : {
38
+ storageSizeGB : 256
39
+ iops : 1100
40
+ autoGrow : 'Enabled'
41
+ tier : 'Premium'
42
+ }
37
43
enableIndexTuning : true
38
44
enableQueryPerformanceInsight : true
39
45
}
Original file line number Diff line number Diff line change @@ -24,13 +24,24 @@ param tags object
24
24
25
25
@export ()
26
26
type Sku = {
27
- name : 'Standard_B1ms' | 'Standard_B2s' | 'Standard_B4ms' | 'Standard_B8ms' | 'Standard_B12ms' | 'Standard_B16ms' | 'Standard_B20ms' | 'Standard_D4ads_v5'
27
+ name : 'Standard_B1ms' | 'Standard_B2s' | 'Standard_B4ms' | 'Standard_B8ms' | 'Standard_B12ms' | 'Standard_B16ms' | 'Standard_B20ms' | 'Standard_D4ads_v5' | 'Standard_D8ads_v5'
28
28
tier : 'Burstable' | 'GeneralPurpose' | 'MemoryOptimized'
29
29
}
30
30
31
31
@description ('The SKU of the PostgreSQL server' )
32
32
param sku Sku
33
33
34
+ @export ()
35
+ type StorageConfiguration = {
36
+ storageSizeGB : int
37
+ iops : int ?
38
+ autoGrow : 'Enabled' | 'Disabled'
39
+ tier : 'Premium' ? // For burstable skus, this is not supported
40
+ }
41
+
42
+ @description ('The storage configuration for the PostgreSQL server' )
43
+ param storage StorageConfiguration
44
+
34
45
@description ('Enable query performance insight' )
35
46
param enableQueryPerformanceInsight bool
36
47
@@ -94,7 +105,12 @@ resource postgres 'Microsoft.DBforPostgreSQL/flexibleServers@2024-08-01' = {
94
105
version : '15'
95
106
administratorLogin : administratorLogin
96
107
administratorLoginPassword : administratorLoginPassword
97
- storage : { storageSizeGB : 32 }
108
+ storage : {
109
+ storageSizeGB : storage .storageSizeGB
110
+ autoGrow : storage .autoGrow
111
+ iops : storage .iops
112
+ tier : storage .tier
113
+ }
98
114
dataEncryption : {
99
115
type : 'SystemManaged'
100
116
}
You can’t perform that action at this time.
0 commit comments