Skip to content

Commit

Permalink
Support Standard_E20 MySQL flexible SKUs (#25140)
Browse files Browse the repository at this point in the history
Allow to use SKUs Standard_E20ds_v4, Standard_E20ads_v5 and Standard_E20ds_v5 for MySQL flexible server
  • Loading branch information
kratkyzobak authored Mar 5, 2024
1 parent 06ed08f commit 1f2e885
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1f2e885

Please sign in to comment.