Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
teowa committed Feb 17, 2023
1 parent 95ff9b1 commit 916b1d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ func resourceMonitorDiagnosticSetting() *pluginsdk.Resource {
ForceNew: false,
Computed: true,
ValidateFunc: validation.StringInSlice([]string{
"AzureDiagnostics",
"Dedicated", // Not documented in azure API, but some resource has skew. See: https://github.com/Azure/azure-rest-api-specs/issues/9281
"Dedicated",
"AzureDiagnostics", // Not documented in azure API, but some resource has skew. See: https://github.com/Azure/azure-rest-api-specs/issues/9281
}, false),
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,9 @@ resource "azurerm_key_vault" "test" {
}
resource "azurerm_monitor_diagnostic_setting" "test" {
name = "acctest-DS-%[1]d"
target_resource_id = azurerm_key_vault.test.id
log_analytics_workspace_id = azurerm_log_analytics_workspace.test.id
name = "acctest-DS-%[1]d"
target_resource_id = azurerm_key_vault.test.id
log_analytics_workspace_id = azurerm_log_analytics_workspace.test.id
metric {
category = "AllMetrics"
Expand Down Expand Up @@ -775,7 +775,7 @@ resource "azurerm_monitor_diagnostic_setting" "test" {
eventhub_authorization_rule_id = azurerm_eventhub_namespace_authorization_rule.test.id
eventhub_name = azurerm_eventhub.test.name
enabled_log {
enabled_log {
category = "AuditEvent"
retention_policy {
Expand All @@ -784,7 +784,7 @@ resource "azurerm_monitor_diagnostic_setting" "test" {
}
}
enabled_log {
enabled_log {
category = "AzurePolicyEvaluationDetails"
retention_policy {
Expand Down Expand Up @@ -858,7 +858,7 @@ resource "azurerm_monitor_diagnostic_setting" "test" {
eventhub_authorization_rule_id = azurerm_eventhub_namespace_authorization_rule.test.id
eventhub_name = azurerm_eventhub.test.name
enabled_log {
enabled_log {
category = "AuditEvent"
retention_policy {
Expand Down

0 comments on commit 916b1d1

Please sign in to comment.