Skip to content

Commit 1276e75

Browse files
mkohnMatthew Kohn
andauthored
Updating variables to support other hyperscale Skus (#28453)
Co-authored-by: Matthew Kohn <matthew.kohn@gmail.com>
1 parent 53ad761 commit 1276e75

File tree

1 file changed

+46
-26
lines changed

1 file changed

+46
-26
lines changed

internal/services/mssql/helper/elasticpool.go

Lines changed: 46 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -201,34 +201,52 @@ var getvCoreMaxGB = map[string]map[string]map[int]float64{
201201
},
202202
"hyperscale": {
203203
"gen5": {
204-
4: 1024,
205-
6: 1536,
206-
8: 2048,
207-
10: 2048,
208-
12: 3072,
209-
14: 3072,
210-
16: 3072,
211-
18: 3072,
212-
20: 3072,
213-
24: 4096,
214-
32: 4096,
215-
40: 4096,
216-
80: 4096,
204+
4: 128000,
205+
6: 128000,
206+
8: 128000,
207+
10: 128000,
208+
12: 128000,
209+
14: 128000,
210+
16: 128000,
211+
18: 128000,
212+
20: 128000,
213+
24: 128000,
214+
32: 128000,
215+
40: 128000,
216+
80: 128000,
217217
},
218218
"prms": {
219-
4: 1024,
220-
6: 1536,
221-
8: 2048,
222-
10: 2048,
223-
12: 3072,
224-
14: 3072,
225-
16: 3072,
226-
18: 3072,
227-
20: 3072,
228-
24: 4096,
229-
32: 4096,
230-
40: 4096,
231-
80: 4096,
219+
4: 128000,
220+
6: 128000,
221+
8: 128000,
222+
10: 128000,
223+
12: 128000,
224+
14: 128000,
225+
16: 128000,
226+
18: 128000,
227+
20: 128000,
228+
24: 128000,
229+
32: 128000,
230+
40: 128000,
231+
64: 128000,
232+
80: 128000,
233+
128: 128000,
234+
},
235+
"moprms": {
236+
4: 128000,
237+
6: 128000,
238+
8: 128000,
239+
10: 128000,
240+
12: 128000,
241+
14: 128000,
242+
16: 128000,
243+
18: 128000,
244+
20: 128000,
245+
24: 128000,
246+
32: 128000,
247+
40: 128000,
248+
64: 128000,
249+
80: 128000,
232250
},
233251
},
234252
}
@@ -251,6 +269,8 @@ var getTierFromName = map[string]string{
251269
"bc_gen5": "BusinessCritical",
252270
"bc_dc": "BusinessCritical",
253271
"hs_gen5": "HyperScale",
272+
"hs_prms": "HyperScale",
273+
"hs_moprms": "HyperScale",
254274
}
255275

256276
func MSSQLElasticPoolValidateSKU(diff *pluginsdk.ResourceDiff) error {

0 commit comments

Comments
 (0)