From 785c08b2b852b26ceb55cc758e52f5c602b08994 Mon Sep 17 00:00:00 2001 From: Steven St Jean Date: Tue, 26 Oct 2021 17:20:31 -1000 Subject: [PATCH] Fixed bug in newWorkload.bicep --- src/bicep/examples/newWorkload/newWorkload.bicep | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/bicep/examples/newWorkload/newWorkload.bicep b/src/bicep/examples/newWorkload/newWorkload.bicep index d49d9c816..c5e6f2282 100644 --- a/src/bicep/examples/newWorkload/newWorkload.bicep +++ b/src/bicep/examples/newWorkload/newWorkload.bicep @@ -24,6 +24,17 @@ param virtualNetworkDiagnosticsMetrics array = [] param networkSecurityGroupName string = '${workloadName}-nsg' param networkSecurityGroupRules array = [] +param networkSecurityGroupDiagnosticsLogs array = [ + { + category: 'NetworkSecurityGroupEvent' + enabled: true + } + { + category: 'NetworkSecurityGroupRuleCounter' + enabled: true + } +] +param networkSecurityGroupDiagnosticsMetrics array = [] param subnetName string = '${workloadName}-subnet' param subnetAddressPrefix string = '10.0.125.0/27' @@ -60,6 +71,8 @@ module spokeNetwork '../../modules/spokeNetwork.bicep' = { networkSecurityGroupName: networkSecurityGroupName networkSecurityGroupRules: networkSecurityGroupRules + networkSecurityGroupDiagnosticsLogs: networkSecurityGroupDiagnosticsLogs + networkSecurityGroupDiagnosticsMetrics: networkSecurityGroupDiagnosticsMetrics subnetName: subnetName subnetAddressPrefix: subnetAddressPrefix