Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for Standard SKU #737

Merged
merged 3 commits into from
Aug 24, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/bicep/modules/firewall.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ param name string
param location string = resourceGroup().location
param tags object = {}

@allowed([
'Standard'
'Premium'
])
param skuTier string

@allowed([
Expand Down Expand Up @@ -42,15 +46,17 @@ param logAnalyticsWorkspaceResourceId string
param logs array
param metrics array

var intrusionDetectionObject = {
mode: intrusionDetectionMode
}

resource firewallPolicy 'Microsoft.Network/firewallPolicies@2021-02-01' = {
name: firewallPolicyName
location: location
tags: tags
properties: {
threatIntelMode: threatIntelMode
intrusionDetection:{
mode: intrusionDetectionMode
}
intrusionDetection: ((skuTier == 'Premium') ? intrusionDetectionObject : null)
sku: {
tier: skuTier
}
Expand Down