Skip to content

Commit

Permalink
azurerm_linux_virtual_machine, azurerm_windows_virtual_machine - …
Browse files Browse the repository at this point in the history
…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 <[email protected]>
  • Loading branch information
audunsolemdal and stephybun authored May 27, 2024
1 parent 3ed9cbb commit a52b9ce
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion internal/services/compute/virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func virtualMachineAdditionalCapabilitiesSchema() *pluginsdk.Schema {

"hibernation_enabled": {
Type: pluginsdk.TypeBool,
ForceNew: true,
Optional: true,
Default: false,
},
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/linux_virtual_machine.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

---

Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/windows_virtual_machine.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

---

Expand Down

0 comments on commit a52b9ce

Please sign in to comment.