Skip to content

Commit f88f4f7

Browse files
fix: added ignore_changes
1 parent 4abc954 commit f88f4f7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ resource "azurerm_monitor_diagnostic_setting" "this" {
3232
category = metric.value
3333
}
3434
}
35+
lifecycle {
36+
ignore_changes = [log_analytics_destination_type] # TODO remove when issue is fixed: https://github.com/Azure/azure-rest-api-specs/issues/9281
37+
}
3538
}
3639

3740
locals {

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ variable "analytics_workspace_id" {
178178
}
179179

180180
variable "analytics_destination_type" {
181-
type = string
181+
type = string
182182
description = "Possible values are AzureDiagnostics and Dedicated."
183-
default = "Dedicated"
183+
default = "Dedicated"
184184
}
185185

186186
variable "enable_diagnostic_setting" {

0 commit comments

Comments
 (0)