Skip to content

Commit

Permalink
re-opening #2806 (adjust autoscale limit validation) (#2815)
Browse files Browse the repository at this point in the history
Including the changes from @georgespatton in #2806 - pushing to that fork broken the PR 🤷‍♂️

Original PR:

---

This should fix #2136 as well as #2624 to follow the Azure documentation here: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/overview

Fixes #2136
Fixes #2624
  • Loading branch information
tombuildsstuff authored and katbyte committed Feb 7, 2019
1 parent cb12a95 commit 66de608
Show file tree
Hide file tree
Showing 7 changed files with 331 additions and 146 deletions.
6 changes: 3 additions & 3 deletions azurerm/resource_arm_autoscale_setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,17 @@ As such the existing 'azurerm_autoscale_setting' resource is deprecated and will
"minimum": {
Type: schema.TypeInt,
Required: true,
ValidateFunc: validation.IntBetween(1, 40),
ValidateFunc: validation.IntBetween(0, 1000),
},
"maximum": {
Type: schema.TypeInt,
Required: true,
ValidateFunc: validation.IntBetween(1, 40),
ValidateFunc: validation.IntBetween(0, 1000),
},
"default": {
Type: schema.TypeInt,
Required: true,
ValidateFunc: validation.IntBetween(1, 40),
ValidateFunc: validation.IntBetween(0, 1000),
},
},
},
Expand Down
Loading

0 comments on commit 66de608

Please sign in to comment.