From a52b9ce0c9b025516a88108c8551d14e95efdcb0 Mon Sep 17 00:00:00 2001 From: Audun Solemdal Date: Mon, 27 May 2024 16:38:18 +0200 Subject: [PATCH] `azurerm_linux_virtual_machine`, `azurerm_windows_virtual_machine` - Ensure virtual machines are not recreated when enabling hibernation (#26112) * Ensure virtual machines are not created when enabling hibernation * fix vendor deps (#26113) * Ensure virtual machines are not created when enabling hibernation --------- Co-authored-by: stephybun --- internal/services/compute/virtual_machine.go | 1 - website/docs/r/linux_virtual_machine.html.markdown | 2 +- website/docs/r/windows_virtual_machine.html.markdown | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/services/compute/virtual_machine.go b/internal/services/compute/virtual_machine.go index d5261eb3c873..f962baf07bfa 100644 --- a/internal/services/compute/virtual_machine.go +++ b/internal/services/compute/virtual_machine.go @@ -40,7 +40,6 @@ func virtualMachineAdditionalCapabilitiesSchema() *pluginsdk.Schema { "hibernation_enabled": { Type: pluginsdk.TypeBool, - ForceNew: true, Optional: true, Default: false, }, diff --git a/website/docs/r/linux_virtual_machine.html.markdown b/website/docs/r/linux_virtual_machine.html.markdown index 72b87a169485..aa13946b36e2 100644 --- a/website/docs/r/linux_virtual_machine.html.markdown +++ b/website/docs/r/linux_virtual_machine.html.markdown @@ -232,7 +232,7 @@ A `additional_capabilities` block supports the following: * `ultra_ssd_enabled` - (Optional) Should the capacity to enable Data Disks of the `UltraSSD_LRS` storage account type be supported on this Virtual Machine? Defaults to `false`. -* `hibernation_enabled` - (Optional) Whether to enable the hibernation capability or not. Changing this forces a new Linux Virtual Machine to be created. +* `hibernation_enabled` - (Optional) Whether to enable the hibernation capability or not. --- diff --git a/website/docs/r/windows_virtual_machine.html.markdown b/website/docs/r/windows_virtual_machine.html.markdown index dcdb453b439d..f72fb5a4a79f 100644 --- a/website/docs/r/windows_virtual_machine.html.markdown +++ b/website/docs/r/windows_virtual_machine.html.markdown @@ -231,7 +231,7 @@ A `additional_capabilities` block supports the following: * `ultra_ssd_enabled` - (Optional) Should the capacity to enable Data Disks of the `UltraSSD_LRS` storage account type be supported on this Virtual Machine? Defaults to `false`. -* `hibernation_enabled` - (Optional) Whether to enable the hibernation capability or not. Changing this forces a new Windows Virtual Machine to be created. +* `hibernation_enabled` - (Optional) Whether to enable the hibernation capability or not. ---