Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added patch assessment mode on Linux and Windows VM #2071

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ azuread_applications = {
admin_consent_description = "Allow to administer app2."
admin_consent_display_name = "Administer app2"
enabled = true
type = "Admin"
value = "app2"
type = "Admin"
value = "app2"
}
]
}
Expand Down
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
Loading