From a9f1f6d180cb1002b4714c5f3a4674ce495c0c0e Mon Sep 17 00:00:00 2001 From: Matthew Kohn Date: Wed, 8 Jan 2025 08:17:38 -0500 Subject: [PATCH] Updating variables to support other hyperscale Skus --- internal/services/mssql/helper/elasticpool.go | 72 ++++++++++++------- 1 file changed, 46 insertions(+), 26 deletions(-) diff --git a/internal/services/mssql/helper/elasticpool.go b/internal/services/mssql/helper/elasticpool.go index c2e539c1096b..e41929afca28 100644 --- a/internal/services/mssql/helper/elasticpool.go +++ b/internal/services/mssql/helper/elasticpool.go @@ -201,34 +201,52 @@ var getvCoreMaxGB = map[string]map[string]map[int]float64{ }, "hyperscale": { "gen5": { - 4: 1024, - 6: 1536, - 8: 2048, - 10: 2048, - 12: 3072, - 14: 3072, - 16: 3072, - 18: 3072, - 20: 3072, - 24: 4096, - 32: 4096, - 40: 4096, - 80: 4096, + 4: 128000, + 6: 128000, + 8: 128000, + 10: 128000, + 12: 128000, + 14: 128000, + 16: 128000, + 18: 128000, + 20: 128000, + 24: 128000, + 32: 128000, + 40: 128000, + 80: 128000, }, "prms": { - 4: 1024, - 6: 1536, - 8: 2048, - 10: 2048, - 12: 3072, - 14: 3072, - 16: 3072, - 18: 3072, - 20: 3072, - 24: 4096, - 32: 4096, - 40: 4096, - 80: 4096, + 4: 128000, + 6: 128000, + 8: 128000, + 10: 128000, + 12: 128000, + 14: 128000, + 16: 128000, + 18: 128000, + 20: 128000, + 24: 128000, + 32: 128000, + 40: 128000, + 64: 128000, + 80: 128000, + 128: 128000, + }, + "moprms": { + 4: 128000, + 6: 128000, + 8: 128000, + 10: 128000, + 12: 128000, + 14: 128000, + 16: 128000, + 18: 128000, + 20: 128000, + 24: 128000, + 32: 128000, + 40: 128000, + 64: 128000, + 80: 128000, }, }, } @@ -251,6 +269,8 @@ var getTierFromName = map[string]string{ "bc_gen5": "BusinessCritical", "bc_dc": "BusinessCritical", "hs_gen5": "HyperScale", + "hs_prms": "HyperScale", + "hs_moprms": "HyperScale", } func MSSQLElasticPoolValidateSKU(diff *pluginsdk.ResourceDiff) error {