From 955ddb7b8aa7b723cdf9b498a3144b792d352ec2 Mon Sep 17 00:00:00 2001 From: Glenn Musa <4622125+glennmusa@users.noreply.github.com> Date: Tue, 12 Oct 2021 19:38:27 +0000 Subject: [PATCH] use the common diagnosticSettings provider version in centralLogging.bicep --- src/bicep/mlz.json | 18 +++++++++--------- src/bicep/modules/centralLogging.bicep | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/bicep/mlz.json b/src/bicep/mlz.json index d0adc3625..5c2c7f3df 100644 --- a/src/bicep/mlz.json +++ b/src/bicep/mlz.json @@ -5,7 +5,7 @@ "_generator": { "name": "bicep", "version": "0.4.613.9944", - "templateHash": "11625881222170284328" + "templateHash": "12997432989008627632" } }, "parameters": { @@ -5983,7 +5983,7 @@ "_generator": { "name": "bicep", "version": "0.4.613.9944", - "templateHash": "10501865331857601559" + "templateHash": "8810160807544413438" } }, "parameters": { @@ -5998,7 +5998,7 @@ "resources": [ { "type": "Microsoft.Insights/diagnosticSettings", - "apiVersion": "2021-05-01-preview", + "apiVersion": "2017-05-01-preview", "name": "[parameters('diagnosticSettingName')]", "properties": { "workspaceId": "[parameters('logAnalyticsWorkspaceId')]", @@ -6072,7 +6072,7 @@ "_generator": { "name": "bicep", "version": "0.4.613.9944", - "templateHash": "10501865331857601559" + "templateHash": "8810160807544413438" } }, "parameters": { @@ -6087,7 +6087,7 @@ "resources": [ { "type": "Microsoft.Insights/diagnosticSettings", - "apiVersion": "2021-05-01-preview", + "apiVersion": "2017-05-01-preview", "name": "[parameters('diagnosticSettingName')]", "properties": { "workspaceId": "[parameters('logAnalyticsWorkspaceId')]", @@ -6161,7 +6161,7 @@ "_generator": { "name": "bicep", "version": "0.4.613.9944", - "templateHash": "10501865331857601559" + "templateHash": "8810160807544413438" } }, "parameters": { @@ -6176,7 +6176,7 @@ "resources": [ { "type": "Microsoft.Insights/diagnosticSettings", - "apiVersion": "2021-05-01-preview", + "apiVersion": "2017-05-01-preview", "name": "[parameters('diagnosticSettingName')]", "properties": { "workspaceId": "[parameters('logAnalyticsWorkspaceId')]", @@ -6250,7 +6250,7 @@ "_generator": { "name": "bicep", "version": "0.4.613.9944", - "templateHash": "10501865331857601559" + "templateHash": "8810160807544413438" } }, "parameters": { @@ -6265,7 +6265,7 @@ "resources": [ { "type": "Microsoft.Insights/diagnosticSettings", - "apiVersion": "2021-05-01-preview", + "apiVersion": "2017-05-01-preview", "name": "[parameters('diagnosticSettingName')]", "properties": { "workspaceId": "[parameters('logAnalyticsWorkspaceId')]", diff --git a/src/bicep/modules/centralLogging.bicep b/src/bicep/modules/centralLogging.bicep index c19e7d0c0..db0cc587c 100644 --- a/src/bicep/modules/centralLogging.bicep +++ b/src/bicep/modules/centralLogging.bicep @@ -5,7 +5,7 @@ param diagnosticSettingName string param logAnalyticsWorkspaceId string //// Central activity logging to LAWS -resource centralLoggingDiagnosticSettings 'Microsoft.Insights/diagnosticSettings@2021-05-01-preview' = { +resource centralLoggingDiagnosticSettings 'Microsoft.Insights/diagnosticSettings@2017-05-01-preview' = { name: diagnosticSettingName properties: { workspaceId: logAnalyticsWorkspaceId