Skip to content

Commit

Permalink
Merge pull request #14688 from harijayms/manageddisk4TB
Browse files Browse the repository at this point in the history
[MS] Adding support for 4TB disks
  • Loading branch information
grubernaut authored May 19, 2017
2 parents c243c51 + 662373e commit 6772360
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions builtin/providers/azurerm/resource_arm_managed_disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package azurerm

import (
"fmt"
"github.com/Azure/azure-sdk-for-go/arm/disk"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
"log"
"net/http"
"strings"

"github.com/Azure/azure-sdk-for-go/arm/disk"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/helper/validation"
)

func resourceArmManagedDisk() *schema.Resource {
Expand Down Expand Up @@ -90,9 +91,9 @@ func resourceArmManagedDisk() *schema.Resource {

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

0 comments on commit 6772360

Please sign in to comment.