From e9ae85214f5a5058224030f9d0bebcd979bb97f1 Mon Sep 17 00:00:00 2001 From: Roman Sokolkov Date: Tue, 29 May 2018 11:52:08 +0200 Subject: [PATCH] Support OS disk size or type changes --- azurerm/resource_arm_virtual_machine.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/azurerm/resource_arm_virtual_machine.go b/azurerm/resource_arm_virtual_machine.go index e5fb9e52dc51..b9a5bcc0b676 100644 --- a/azurerm/resource_arm_virtual_machine.go +++ b/azurerm/resource_arm_virtual_machine.go @@ -198,6 +198,7 @@ func resourceArmVirtualMachine() *schema.Resource { "managed_disk_type": { Type: schema.TypeString, Optional: true, + ForceNew: true, Computed: true, ConflictsWith: []string{"storage_os_disk.0.vhd_uri"}, ValidateFunc: validation.StringInSlice([]string{ @@ -226,6 +227,7 @@ func resourceArmVirtualMachine() *schema.Resource { "disk_size_gb": { Type: schema.TypeInt, Optional: true, + ForceNew: true, Computed: true, ValidateFunc: validateDiskSizeGB, },