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

Add threat intel mode property for applicable firewall resources #644

Merged
merged 10 commits into from
Oct 5, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ parAzFirewallEnabled | No | Switch to enable/disable Azure Firewall deploy
parAzFirewallName | No | Azure Firewall Name.
parAzFirewallPoliciesName | No | Azure Firewall Policies Name.
parAzFirewallTier | No | Azure Firewall Tier associated with the Firewall to deploy.
parAzFirewallIntelMode | No | The Azure Firewall Threat Intelligence Mode. If not set, the default value is Alert.
parAzFirewallAvailabilityZones | No | Availability Zones to deploy the Azure Firewall across. Region must support Availability Zones to use. If it does not then leave empty.
parAzErGatewayAvailabilityZones | No | Availability Zones to deploy the VPN/ER PIP across. Region must support Availability Zones to use. If it does not then leave empty. Ensure that you select a zonal SKU for the ER/VPN Gateway if using Availability Zones for the PIP.
parAzVpnGatewayAvailabilityZones | No | Availability Zones to deploy the VPN/ER PIP across. Region must support Availability Zones to use. If it does not then leave empty. Ensure that you select a zonal SKU for the ER/VPN Gateway if using Availability Zones for the PIP.
Expand Down Expand Up @@ -206,6 +207,16 @@ Azure Firewall Tier associated with the Firewall to deploy.

- Allowed values: `Basic`, `Standard`, `Premium`

### parAzFirewallIntelMode

![Parameter Setting](https://img.shields.io/badge/parameter-optional-green?style=flat-square)

The Azure Firewall Threat Intelligence Mode. If not set, the default value is Alert.

- Default value: `Alert`

- Allowed values: `Alert`, `Deny`, `Off`

### parAzFirewallAvailabilityZones

![Parameter Setting](https://img.shields.io/badge/parameter-optional-green?style=flat-square)
Expand Down Expand Up @@ -451,6 +462,9 @@ outHubVirtualNetworkId | string |
"parAzFirewallTier": {
"value": "Standard"
},
"parAzFirewallIntelMode": {
"value": "Alert"
},
"parAzFirewallAvailabilityZones": {
"value": []
},
Expand Down
10 changes: 10 additions & 0 deletions infra-as-code/bicep/modules/hubNetworking/hubNetworking.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ param parAzFirewallPoliciesName string = '${parCompanyPrefix}-azfwpolicy-${parLo
])
param parAzFirewallTier string = 'Standard'

@sys.description('The Azure Firewall Threat Intelligence Mode. If not set, the default value is Alert.')
@allowed([
'Alert'
'Deny'
'Off'
])
param parAzFirewallIntelMode string = 'Alert'

@allowed([
'1'
'2'
Expand Down Expand Up @@ -677,6 +685,7 @@ resource resFirewallPolicies 'Microsoft.Network/firewallPolicies@2023-02-01' = i
sku: {
tier: parAzFirewallTier
}
threatIntelMode: 'Alert'
} : {
dnsSettings: {
enableProxy: parAzFirewallDnsProxyEnabled
Expand All @@ -685,6 +694,7 @@ resource resFirewallPolicies 'Microsoft.Network/firewallPolicies@2023-02-01' = i
sku: {
tier: parAzFirewallTier
}
threatIntelMode: parAzFirewallIntelMode
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
"parAzFirewallTier": {
"value": "Standard"
},
"parAzFirewallIntelMode": {
"value": "Alert"
},
"parAzFirewallAvailabilityZones": {
"value": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
"parAzFirewallTier": {
"value": "Standard"
},
"parAzFirewallIntelMode": {
"value": "Alert"
},
"parAzFirewallAvailabilityZones": {
"value": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
"parAzFirewallTier": {
"value": "Standard"
},
"parAzFirewallIntelMode": {
"value": "Alert"
},
"parAzFirewallAvailabilityZones": {
"value": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
"parAzFirewallTier": {
"value": "Standard"
},
"parAzFirewallIntelMode": {
"value": "Alert"
},
"parAzFirewallAvailabilityZones": {
"value": []
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Parameter name | Required | Description
parLocation | No | Region in which the resource group was created.
parCompanyPrefix | No | Prefix value which will be prepended to all resource names.
parAzFirewallTier | No | Azure Firewall Tier associated with the Firewall to deploy.
parAzFirewallIntelMode | No | The Azure Firewall Threat Intelligence Mode. If not set, the default value is Alert.
parVirtualHubEnabled | No | Switch to enable/disable Virtual Hub deployment.
parAzFirewallDnsProxyEnabled | No | Switch to enable/disable Azure Firewall DNS Proxy.
parAzFirewallDnsServers | No | Array of custom DNS servers used by Azure Firewall
Expand Down Expand Up @@ -59,6 +60,16 @@ Azure Firewall Tier associated with the Firewall to deploy.

- Allowed values: `Basic`, `Standard`, `Premium`

### parAzFirewallIntelMode

![Parameter Setting](https://img.shields.io/badge/parameter-optional-green?style=flat-square)

The Azure Firewall Threat Intelligence Mode. If not set, the default value is Alert.

- Default value: `Alert`

- Allowed values: `Alert`, `Deny`, `Off`

### parVirtualHubEnabled

![Parameter Setting](https://img.shields.io/badge/parameter-optional-green?style=flat-square)
Expand Down Expand Up @@ -278,6 +289,9 @@ outAzFwPrivateIps | array |
"parAzFirewallTier": {
"value": "Standard"
},
"parAzFirewallIntelMode": {
"value": "Alert"
},
"parVirtualHubEnabled": {
"value": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"parAzFirewallTier": {
"value": "Standard"
},
"parAzFirewallIntelMode": {
"value": "Alert"
},
"parVirtualHubEnabled": {
"value": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"parAzFirewallTier": {
"value": "Standard"
},
"parAzFirewallIntelMode": {
"value": "Alert"
},
"parVirtualHubEnabled": {
"value": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"parAzFirewallTier": {
"value": "Standard"
},
"parAzFirewallIntelMode": {
"value": "Alert"
},
"parVirtualHubEnabled": {
"value": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"parAzFirewallTier": {
"value": "Standard"
},
"parAzFirewallIntelMode": {
"value": "Alert"
},
"parVirtualHubEnabled": {
"value": true
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module minimum_vwan_conn '../vwanConnectivity.bicep' = {
params: {
parLocation: parLocation
parAzFirewallTier: 'Standard'
parAzFirewallIntelMode: 'Alert'
parVirtualHubEnabled: true
parVirtualWanHubs: [ {
parVpnGatewayEnabled: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ param parCompanyPrefix string = 'alz'
])
param parAzFirewallTier string = 'Standard'

@sys.description('The Azure Firewall Threat Intelligence Mode. If not set, the default value is Alert.')
@allowed([
'Alert'
'Deny'
'Off'
])
param parAzFirewallIntelMode string = 'Alert'

@sys.description('Switch to enable/disable Virtual Hub deployment.')
param parVirtualHubEnabled bool = true

Expand Down Expand Up @@ -296,6 +304,7 @@ resource resFirewallPolicies 'Microsoft.Network/firewallPolicies@2023-02-01' = i
sku: {
tier: parAzFirewallTier
}
threatIntelMode: 'Alert'
} : {
dnsSettings: {
enableProxy: parAzFirewallDnsProxyEnabled
Expand All @@ -304,6 +313,7 @@ resource resFirewallPolicies 'Microsoft.Network/firewallPolicies@2023-02-01' = i
sku: {
tier: parAzFirewallTier
}
threatIntelMode: parAzFirewallIntelMode
}
}

Expand Down
Loading