From adf882f86f8fecaeaf29b46e74bb8cbdf346a7d4 Mon Sep 17 00:00:00 2001 From: Eskil Uhlving Larsen <7443949+picccard@users.noreply.github.com> Date: Thu, 15 Aug 2024 15:29:21 +0200 Subject: [PATCH 1/2] updated api versions to satisfy linter --- infra-as-code/bicep/modules/logging/logging.bicep | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/infra-as-code/bicep/modules/logging/logging.bicep b/infra-as-code/bicep/modules/logging/logging.bicep index 92e46374b..fe6b47888 100644 --- a/infra-as-code/bicep/modules/logging/logging.bicep +++ b/infra-as-code/bicep/modules/logging/logging.bicep @@ -189,7 +189,7 @@ resource resUserAssignedManagedIdentity 'Microsoft.ManagedIdentity/userAssignedI location: parUserAssignedManagedIdentityLocation } -resource resAutomationAccount 'Microsoft.Automation/automationAccounts@2022-08-08' = { +resource resAutomationAccount 'Microsoft.Automation/automationAccounts@2023-11-01' = { name: parAutomationAccountName location: parAutomationAccountLocation tags: parAutomationAccountTags @@ -240,7 +240,7 @@ resource resLogAnalyticsWorkspaceLock 'Microsoft.Authorization/locks@2020-05-01' } } -resource resDataCollectionRuleVMInsights 'Microsoft.Insights/dataCollectionRules@2021-04-01' = { +resource resDataCollectionRuleVMInsights 'Microsoft.Insights/dataCollectionRules@2023-03-11' = { name: parDataCollectionRuleVMInsightsName location: parLogAnalyticsWorkspaceLocation properties: { @@ -308,7 +308,7 @@ resource resDataCollectionRuleVMInsightsLock 'Microsoft.Authorization/locks@2020 } } -resource resDataCollectionRuleChangeTracking 'Microsoft.Insights/dataCollectionRules@2021-04-01' = { +resource resDataCollectionRuleChangeTracking 'Microsoft.Insights/dataCollectionRules@2023-03-11' = { name: parDataCollectionRuleChangeTrackingName location: parLogAnalyticsWorkspaceLocation properties: { @@ -579,7 +579,7 @@ resource resDataCollectionRuleChangeTrackingLock 'Microsoft.Authorization/locks@ } } -resource resDataCollectionRuleMDFCSQL'Microsoft.Insights/dataCollectionRules@2021-04-01' = { +resource resDataCollectionRuleMDFCSQL'Microsoft.Insights/dataCollectionRules@2023-03-11' = { name: parDataCollectionRuleMDFCSQLName location: parLogAnalyticsWorkspaceLocation properties: { From 2ce92d0a275195773218b77fb467fb790ae80e25 Mon Sep 17 00:00:00 2001 From: Zach Trocinski Date: Mon, 19 Aug 2024 15:43:06 -0500 Subject: [PATCH 2/2] Revert due to bug with newer api versions --- infra-as-code/bicep/modules/logging/logging.bicep | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infra-as-code/bicep/modules/logging/logging.bicep b/infra-as-code/bicep/modules/logging/logging.bicep index fe6b47888..fb81f91fd 100644 --- a/infra-as-code/bicep/modules/logging/logging.bicep +++ b/infra-as-code/bicep/modules/logging/logging.bicep @@ -240,7 +240,7 @@ resource resLogAnalyticsWorkspaceLock 'Microsoft.Authorization/locks@2020-05-01' } } -resource resDataCollectionRuleVMInsights 'Microsoft.Insights/dataCollectionRules@2023-03-11' = { +resource resDataCollectionRuleVMInsights 'Microsoft.Insights/dataCollectionRules@2021-04-01' = { name: parDataCollectionRuleVMInsightsName location: parLogAnalyticsWorkspaceLocation properties: { @@ -308,7 +308,7 @@ resource resDataCollectionRuleVMInsightsLock 'Microsoft.Authorization/locks@2020 } } -resource resDataCollectionRuleChangeTracking 'Microsoft.Insights/dataCollectionRules@2023-03-11' = { +resource resDataCollectionRuleChangeTracking 'Microsoft.Insights/dataCollectionRules@2021-04-01' = { name: parDataCollectionRuleChangeTrackingName location: parLogAnalyticsWorkspaceLocation properties: { @@ -579,7 +579,7 @@ resource resDataCollectionRuleChangeTrackingLock 'Microsoft.Authorization/locks@ } } -resource resDataCollectionRuleMDFCSQL'Microsoft.Insights/dataCollectionRules@2023-03-11' = { +resource resDataCollectionRuleMDFCSQL'Microsoft.Insights/dataCollectionRules@2021-04-01' = { name: parDataCollectionRuleMDFCSQLName location: parLogAnalyticsWorkspaceLocation properties: {