You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
│ Error: creating Windows Virtual Machine: (Name "win-machine" / Resource Group "tamopstf"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="The patchMode 'AutomaticByOS' is invalid. For patchMode 'AutomaticByOS', the property 'enableAutomaticUpdates' must be set to true." Target="windowsConfiguration.patchSettings.patchMode"
│
│ with module.virtual-machine-win.azurerm_windows_virtual_machine.win_vm[0],
│ on .terraform\modules\virtual-machine-win\main.tf line 272, in resource "azurerm_windows_virtual_machine" "win_vm":
│ 272: resource "azurerm_windows_virtual_machine" "win_vm" {
For working even commented out patch_mode in module but still getting same error.
For resolution added enable_automatic_updates attribute in VM tf file and have to make that value true to make the code working successfully.
enable_automatic_updates = false giving me same error.
Even enable_vm_availability_set = false is not working as expected have to comment out code in module
#availability_zone = var.public_ip_availability_zone
The text was updated successfully, but these errors were encountered:
│ Error: creating Windows Virtual Machine: (Name "win-machine" / Resource Group "tamopstf"): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="InvalidParameter" Message="The patchMode 'AutomaticByOS' is invalid. For patchMode 'AutomaticByOS', the property 'enableAutomaticUpdates' must be set to true." Target="windowsConfiguration.patchSettings.patchMode"
│
│ with module.virtual-machine-win.azurerm_windows_virtual_machine.win_vm[0],
│ on .terraform\modules\virtual-machine-win\main.tf line 272, in resource "azurerm_windows_virtual_machine" "win_vm":
│ 272: resource "azurerm_windows_virtual_machine" "win_vm" {
For working even commented out patch_mode in module but still getting same error.
For resolution added enable_automatic_updates attribute in VM tf file and have to make that value true to make the code working successfully.
enable_automatic_updates = false giving me same error.
Even enable_vm_availability_set = false is not working as expected have to comment out code in module
#availability_zone = var.public_ip_availability_zone
The text was updated successfully, but these errors were encountered: