Skip to content

Commit

Permalink
Add threat intel mode property for applicable firewall resources (#644)
Browse files Browse the repository at this point in the history
* Add threat intel mode property for applicable firewall resources

* Generate Parameter Markdowns [oZakari/b0409faa]

* Apply suggestions from code review

* Include firewall name convention for threat mode intelligence

* Updates to threat mode for firewall tiers

* Generate Parameter Markdowns [oZakari/8dbc3dac]

* Manually change threat mode docs

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jack Tracey <41163455+jtracey93@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 5, 2023
1 parent 8dbc3da commit e9cfbcb
Show file tree
Hide file tree
Showing 13 changed files with 73 additions and 0 deletions.
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

0 comments on commit e9cfbcb

Please sign in to comment.