Skip to content

Commit 5c53937

Browse files
committed
fix: ignore changes of type_handler_version in azurerm_virtual_machine_extensions
Signed-off-by: christianjedro <cj@cloudeteer.de>
1 parent 694d3e2 commit 5c53937

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

r-extensions.tf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ locals {
44
name = "NetworkWatcherAgent"
55
publisher = "Microsoft.Azure.NetworkWatcher"
66
type = format("NetworkWatcherAgent%s", local.image_full.operating_system)
7-
type_handler_version = "1.0"
7+
type_handler_version = "*"
88
auto_upgrade_minor_version = true
99
automatic_upgrade_enabled = true
1010
},
1111
{
1212
name = "AzureMonitorAgent"
1313
publisher = "Microsoft.Azure.Monitor"
1414
type = format("AzureMonitor%sAgent", local.image_full.operating_system)
15-
type_handler_version = "1.0"
15+
type_handler_version = "*"
1616
auto_upgrade_minor_version = true
1717
automatic_upgrade_enabled = true
1818
},
1919
{
2020
name = "AzurePolicy"
2121
publisher = "Microsoft.GuestConfiguration"
2222
type = format("Configurationfor%s", local.image_full.operating_system)
23-
type_handler_version = "1.0"
23+
type_handler_version = "*"
2424
auto_upgrade_minor_version = true
2525
automatic_upgrade_enabled = true
2626
},
@@ -32,7 +32,7 @@ locals {
3232
name = "AntiMalware"
3333
publisher = "Microsoft.Azure.Security"
3434
type = "IaaSAntimalware"
35-
type_handler_version = "1.0"
35+
type_handler_version = "*"
3636
auto_upgrade_minor_version = true
3737
automatic_upgrade_enabled = false
3838
},
@@ -63,7 +63,7 @@ resource "azurerm_virtual_machine_extension" "this" {
6363
type_handler_version = each.value.type_handler_version
6464

6565
lifecycle {
66-
ignore_changes = [tags]
66+
ignore_changes = [tags,type_handler_version]
6767
}
6868
}
6969

@@ -74,11 +74,11 @@ resource "azurerm_virtual_machine_extension" "entra_id_login" {
7474
name = "EntraIDLogin"
7575
publisher = "Microsoft.Azure.ActiveDirectory"
7676
type = local.is_linux ? "AADSSHLoginForLinux" : "AADLoginForWindows"
77-
type_handler_version = "1.0"
77+
type_handler_version = "*"
7878
virtual_machine_id = local.virtual_machine.id
7979

8080
lifecycle {
81-
ignore_changes = [tags]
81+
ignore_changes = [tags,type_handler_version]
8282
}
8383
}
8484

@@ -111,7 +111,7 @@ resource "azurerm_virtual_machine_extension" "domain_join" {
111111
name = "DomainJoin"
112112
publisher = "Microsoft.Compute"
113113
type = "JsonADDomainExtension"
114-
type_handler_version = "1.0"
114+
type_handler_version = "*"
115115
auto_upgrade_minor_version = true
116116
automatic_upgrade_enabled = false
117117

@@ -130,7 +130,7 @@ resource "azurerm_virtual_machine_extension" "domain_join" {
130130
})
131131

132132
lifecycle {
133-
ignore_changes = [tags]
133+
ignore_changes = [tags,type_handler_version]
134134
}
135135

136136
depends_on = [

0 commit comments

Comments
 (0)