Terraform 2.0 Diable Windows updates and Delete OS disk on termination

With the release of Terraform 2.0, and “azurerm_windows_virtual_machine”. How can we now use “azurerm_windows_virtual_machine” to disable windows updates and delete the OS disk on termination? The old “enable_automatic_upgrades” and “delete_os_disk_on_termination” do not work with “azurerm_windows_virtual_machine”.

Thanks

Note Terraform will automatically remove the OS Disk by default - this behaviour can be configured using the features setting within the Provider block.

Enable automatic updates:

1 Like