From 47320dcb2b2eb28f252ddb6747ac935b24596e94 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Sat, 16 Mar 2019 23:55:13 +0530 Subject: [PATCH] Change validation of managed disk to support up to 32TB Azure now supports up to 32TB of storage per disk (in preview as of this moment) https://docs.microsoft.com/en-us/azure/virtual-machines/windows/disks-types#premium-ssd --- azurerm/resource_arm_managed_disk.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azurerm/resource_arm_managed_disk.go b/azurerm/resource_arm_managed_disk.go index 7a759ae59ba4..ae150a5cc8e5 100644 --- a/azurerm/resource_arm_managed_disk.go +++ b/azurerm/resource_arm_managed_disk.go @@ -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 }