diff --git a/azurerm/resource_arm_mysql_server.go b/azurerm/resource_arm_mysql_server.go index b29fa1771e74..28ebe3896d05 100644 --- a/azurerm/resource_arm_mysql_server.go +++ b/azurerm/resource_arm_mysql_server.go @@ -8,6 +8,7 @@ import ( "github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2017-12-01/mysql" "github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/helper/validation" + "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/suppress" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate" "github.com/terraform-providers/terraform-provider-azurerm/azurerm/utils" ) @@ -57,12 +58,14 @@ func resourceArmMySqlServer() *schema.Resource { "GP_Gen5_8", "GP_Gen5_16", "GP_Gen5_32", + "GP_Gen5_64", "MO_Gen5_2", "MO_Gen5_4", "MO_Gen5_8", "MO_Gen5_16", + "MO_Gen5_32", }, true), - DiffSuppressFunc: ignoreCaseDiffSuppressFunc, + DiffSuppressFunc: suppress.CaseDifference, }, "capacity": { @@ -75,6 +78,7 @@ func resourceArmMySqlServer() *schema.Resource { 8, 16, 32, + 64, }), }, @@ -86,7 +90,7 @@ func resourceArmMySqlServer() *schema.Resource { string(mysql.GeneralPurpose), string(mysql.MemoryOptimized), }, true), - DiffSuppressFunc: ignoreCaseDiffSuppressFunc, + DiffSuppressFunc: suppress.CaseDifference, }, "family": { @@ -96,7 +100,7 @@ func resourceArmMySqlServer() *schema.Resource { "Gen4", "Gen5", }, true), - DiffSuppressFunc: ignoreCaseDiffSuppressFunc, + DiffSuppressFunc: suppress.CaseDifference, }, }, }, @@ -121,7 +125,7 @@ func resourceArmMySqlServer() *schema.Resource { string(mysql.FiveFullStopSix), string(mysql.FiveFullStopSeven), }, true), - DiffSuppressFunc: ignoreCaseDiffSuppressFunc, + DiffSuppressFunc: suppress.CaseDifference, ForceNew: true, }, @@ -148,7 +152,7 @@ func resourceArmMySqlServer() *schema.Resource { "Enabled", "Disabled", }, true), - DiffSuppressFunc: ignoreCaseDiffSuppressFunc, + DiffSuppressFunc: suppress.CaseDifference, }, }, }, @@ -161,7 +165,7 @@ func resourceArmMySqlServer() *schema.Resource { string(mysql.SslEnforcementEnumDisabled), string(mysql.SslEnforcementEnumEnabled), }, true), - DiffSuppressFunc: ignoreCaseDiffSuppressFunc, + DiffSuppressFunc: suppress.CaseDifference, }, "fqdn": { @@ -225,8 +229,7 @@ func resourceArmMySqlServerCreate(d *schema.ResourceData, meta interface{}) erro return fmt.Errorf("Error creating MySQL Server %q (Resource Group %q): %+v", name, resourceGroup, err) } - err = future.WaitForCompletionRef(ctx, client.Client) - if err != nil { + if err = future.WaitForCompletionRef(ctx, client.Client); err != nil { return fmt.Errorf("Error waiting for creation of MySQL Server %q (Resource Group %q): %+v", name, resourceGroup, err) }