Skip to content

Commit

Permalink
Merge pull request #3062 from code-haven/master
Browse files Browse the repository at this point in the history
Update validation of managed disks to support up to 32TB
  • Loading branch information
tombuildsstuff authored Mar 17, 2019
2 parents a6910e4 + 47320dc commit c851dbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurerm/resource_arm_managed_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ func resourceArmManagedDisk() *schema.Resource {

func validateDiskSizeGB(v interface{}, _ string) (warnings []string, errors []error) {
value := v.(int)
if value < 0 || value > 4095 {
if value < 0 || value > 32767 {
errors = append(errors, fmt.Errorf(
"The `disk_size_gb` can only be between 0 and 4095"))
"The `disk_size_gb` can only be between 0 and 32767"))
}
return warnings, errors
}
Expand Down

0 comments on commit c851dbc

Please sign in to comment.