From d8eb8e3736affb440f5ac51ab551dab2dbf6c5b4 Mon Sep 17 00:00:00 2001 From: Gordon Byers Date: Thu, 30 Mar 2023 15:36:38 +0100 Subject: [PATCH] forgotten condition (#568) --- bicep/main.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bicep/main.bicep b/bicep/main.bicep index ca905f67b..ffcccc796 100644 --- a/bicep/main.bicep +++ b/bicep/main.bicep @@ -1603,7 +1603,7 @@ resource sysLog 'Microsoft.Insights/dataCollectionRules@2021-09-01-preview' = if } } -resource association 'Microsoft.Insights/dataCollectionRuleAssociations@2021-09-01-preview' = { +resource association 'Microsoft.Insights/dataCollectionRuleAssociations@2021-09-01-preview' = if (createLaw && omsagent && enableSysLog) { name: '${aks.name}-${aks_law.name}-association' scope: aks properties: {