From c5e63106b56490285c8b99b9ac9c8d33cc9e54a6 Mon Sep 17 00:00:00 2001 From: Cameron Childress Date: Tue, 6 Dec 2016 01:34:25 -0700 Subject: [PATCH] Force a recreate if the numbers for the AS are changed. (#10545) --- builtin/providers/azurerm/resource_arm_availability_set.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builtin/providers/azurerm/resource_arm_availability_set.go b/builtin/providers/azurerm/resource_arm_availability_set.go index f396d24ca..11d9a129c 100644 --- a/builtin/providers/azurerm/resource_arm_availability_set.go +++ b/builtin/providers/azurerm/resource_arm_availability_set.go @@ -39,6 +39,7 @@ func resourceArmAvailabilitySet() *schema.Resource { Type: schema.TypeInt, Optional: true, Default: 5, + ForceNew: true, ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) { value := v.(int) if value > 20 { @@ -53,6 +54,7 @@ func resourceArmAvailabilitySet() *schema.Resource { Type: schema.TypeInt, Optional: true, Default: 3, + ForceNew: true, ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) { value := v.(int) if value > 3 {