From 1f2e88593e1956a66ff1ee44bedc56a877cee997 Mon Sep 17 00:00:00 2001 From: KratkyZobak Date: Tue, 5 Mar 2024 05:22:24 +0100 Subject: [PATCH] Support Standard_E20 MySQL flexible SKUs (#25140) Allow to use SKUs Standard_E20ds_v4, Standard_E20ads_v5 and Standard_E20ds_v5 for MySQL flexible server --- internal/services/mysql/validate/flexible_server_sku_name.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/services/mysql/validate/flexible_server_sku_name.go b/internal/services/mysql/validate/flexible_server_sku_name.go index 2beb4ba11706..cca90bdbc901 100644 --- a/internal/services/mysql/validate/flexible_server_sku_name.go +++ b/internal/services/mysql/validate/flexible_server_sku_name.go @@ -16,7 +16,7 @@ func FlexibleServerSkuName(i interface{}, k string) (warnings []string, errors [ } // See all available sku names from https://docs.microsoft.com/en-us/azure/mysql/flexible-server/concepts-compute-storage#compute-tiers-size-and-server-types - if !regexp.MustCompile(`^(B|GP|MO)_((Standard_E(2|4|8|16|32|48|64|80i)ds_v4)|(Standard_E(2|2a|4|4a|8|8a|16|16a|32|32a|48|48a|64|64a|96)ds_v5)|(Standard_B(1|1m|2|2m|4m|8m|12m|16m|20m)s)|(Standard_D(2|4|8|16|32|48|64)ds_v4)|(Standard_D(2|4|8|16|32|48|64)ads_v5))$`).MatchString(v) { + if !regexp.MustCompile(`^(B|GP|MO)_((Standard_E(2|4|8|16|20|32|48|64|80i)ds_v4)|(Standard_E(2|2a|4|4a|8|8a|16|16a|20|20a|32|32a|48|48a|64|64a|96)ds_v5)|(Standard_B(1|1m|2|2m|4m|8m|12m|16m|20m)s)|(Standard_D(2|4|8|16|32|48|64)ds_v4)|(Standard_D(2|4|8|16|32|48|64)ads_v5))$`).MatchString(v) { errors = append(errors, fmt.Errorf("%q is not a valid sku name, got %v", k, v)) return }