Skip to content

Commit

Permalink
Added patch_assessment_mode on windows and linux vm
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindelmont committed Oct 9, 2024
1 parent d1c6e09 commit e97feb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/compute/virtual_machine/vm_linux.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ resource "azurerm_linux_virtual_machine" "vm" {
bypass_platform_safety_checks_on_user_schedule_enabled = try(each.value.bypass_platform_safety_checks_on_user_schedule_enabled, null)
# (Optional) Specifies the mode of in-guest patching to this Linux Virtual Machine. Possible values are AutomaticByPlatform and ImageDefault. Defaults to ImageDefault. For more information on patch modes please see the product documentation.
patch_mode = try(each.value.patch_mode, "ImageDefault")
patch_assessment_mode = try(each.value.patch_mode, null)
priority = try(each.value.priority, null)
provision_vm_agent = try(each.value.provision_vm_agent, true)
proximity_placement_group_id = can(each.value.proximity_placement_group_key) || can(each.value.proximity_placement_group.key) ? var.proximity_placement_groups[try(var.client_config.landingzone_key, var.client_config.landingzone_key)][try(each.value.proximity_placement_group_key, each.value.proximity_placement_group.key)].id : try(each.value.proximity_placement_group_id, each.value.proximity_placement_group.id, null)
Expand Down
1 change: 1 addition & 0 deletions modules/compute/virtual_machine/vm_windows.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ resource "azurerm_windows_virtual_machine" "vm" {
network_interface_ids = local.nic_ids
priority = try(each.value.priority, null)
patch_mode = try(each.value.patch_mode, "AutomaticByOS")
patch_assessment_mode = try(each.value.patch_mode, null)
provision_vm_agent = try(each.value.provision_vm_agent, true)
proximity_placement_group_id = can(each.value.proximity_placement_group_key) || can(each.value.proximity_placement_group.key) ? var.proximity_placement_groups[try(var.client_config.landingzone_key, var.client_config.landingzone_key)][try(each.value.proximity_placement_group_key, each.value.proximity_placement_group.key)].id : try(each.value.proximity_placement_group_id, each.value.proximity_placement_group.id, null)
resource_group_name = local.resource_group_name
Expand Down

0 comments on commit e97feb6

Please sign in to comment.