Force a recreate if the numbers for the AS are changed. (#10545)
This commit is contained in:
parent
3ef5be275b
commit
c5e63106b5
|
@ -39,6 +39,7 @@ func resourceArmAvailabilitySet() *schema.Resource {
|
||||||
Type: schema.TypeInt,
|
Type: schema.TypeInt,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: 5,
|
Default: 5,
|
||||||
|
ForceNew: true,
|
||||||
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
|
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
|
||||||
value := v.(int)
|
value := v.(int)
|
||||||
if value > 20 {
|
if value > 20 {
|
||||||
|
@ -53,6 +54,7 @@ func resourceArmAvailabilitySet() *schema.Resource {
|
||||||
Type: schema.TypeInt,
|
Type: schema.TypeInt,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Default: 3,
|
Default: 3,
|
||||||
|
ForceNew: true,
|
||||||
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
|
ValidateFunc: func(v interface{}, k string) (ws []string, errors []error) {
|
||||||
value := v.(int)
|
value := v.(int)
|
||||||
if value > 3 {
|
if value > 3 {
|
||||||
|
|
Loading…
Reference in New Issue