From b760be01fcaf6ef61e346e4fab8d6a4b201c7e18 Mon Sep 17 00:00:00 2001 From: Steven St Jean Date: Thu, 28 Oct 2021 05:57:12 -1000 Subject: [PATCH] Fixed bug in newWorkload.bicep (#488) Co-authored-by: Brooke Hamilton <45323234+brooke-hamilton@users.noreply.github.com> --- 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