Azure / terraform-azurerm-avm-res-compute-virtualmachine

Terraform AVM module for virtual machines
MIT License
21 stars 27 forks source link

[AVM Module Issue]: missing property: `vm_agent_platform_updates_enabled` #118

Open kewalaka opened 1 month ago

kewalaka commented 1 month ago

Check for previous/existing GitHub issues

Issue Type?

Bug

(Optional) Module Version

0.16.0

(Optional) Correlation Id

No response

Description

This property, introduced in azurerm v3.9.4, is missing from the windows & linux VM parameters:

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/windows_virtual_machine.html#vm_agent_platform_updates_enabled

eclipse313 commented 3 weeks ago

I have the same problem. With every apply the value is overwritten again:

  # module.business_applications[0].module.server.module.host.azurerm_windows_virtual_machine.this[0] will be updated in-place
  ~ resource "azurerm_windows_virtual_machine" "this" {
        id                                                     = "/subscriptions/a2fdd2e9-54ce-46d5-b97d-a308578d4d23/resourceGroups/rg-bcd-avd-prod-dewc-business_applications/providers/Microsoft.Compute/virtualMachines/vm-bcd-app-main"
        name                                                   = "vm-bcd-app-main"
        tags                                                   = {}
      ~ vm_agent_platform_updates_enabled                      = true -> false
        # (41 unchanged attributes hidden)

        # (3 unchanged blocks hidden)
    }
jchancellor-ms commented 2 weeks ago

@kewalaka - I'm pending AzureRM support this week and will look to add this capability as well. Thanks for reporting this.