Skip to content

Commit c07c5fa

Browse files
authored
Merge pull request #11013 from saisujithreddym/vnetpolicynrp
Firewall Policy support on vnet firewall
2 parents 0fc850b + 7705e0f commit c07c5fa

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

src/Network/Network/AzureFirewall/NewAzureFirewallCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ private PSAzureFirewall CreateAzureFirewall()
271271
Name = this.Name,
272272
ResourceGroupName = this.ResourceGroupName,
273273
Location = this.Location,
274+
FirewallPolicy = FirewallPolicyId != null ? new MNM.SubResource(FirewallPolicyId) : null,
274275
ApplicationRuleCollections = this.ApplicationRuleCollection?.ToList(),
275276
NatRuleCollections = this.NatRuleCollection?.ToList(),
276277
NetworkRuleCollections = this.NetworkRuleCollection?.ToList(),

src/Network/Network/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
## Upcoming Release
2222
* Fixed FilterData example in Start-AzVirtualNetworkGatewayConnectionPacketCapture.md and Start-AzVirtualnetworkGatewayPacketCapture.md.
2323
* Added Packet Capture example for capture all inner and outer packets in Start-AzVirtualNetworkGatewayConnectionPacketCapture.md and Start-AzVirtualnetworkGatewayPacketCapture.md.
24+
* Support Azure Firewall Policy on VNet Firewalls
25+
- No new cmdlets are added. Relaxing the restriction for firewall policy on VNet firewalls
2426

2527
## Version 2.3.0
2628
* New example added to Set-AzNetworkWatcherConfigFlowLog.md to demonstrate Traffic Analytics disable scenario.

src/Network/Network/help/New-AzFirewall.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,18 @@ Threat Intel will also run in default mode - Alert - which means malicious traff
199199

200200
To support "forced tunneling" scenarios, this firewall will use the subnet "AzureFirewallManagementSubnet" and the management public IP address for its management traffic
201201

202+
### 13: Create a Firewall with Firewall Policy attached to a virtual network
203+
```
204+
$rgName = "resourceGroupName"
205+
$vnet = Get-AzVirtualNetwork -ResourceGroupName $rgName -Name "vnet"
206+
$pip = Get-AzPublicIpAddress -ResourceGroupName $rgName -Name "publicIpName"
207+
$fp = Get-AzFirewallPolicy -ResourceGroupName $rgName -Name "fp"
208+
New-AzFirewall -Name "azFw" -ResourceGroupName $rgName -Location centralus -VirtualNetwork $vnet -PublicIpAddress $pip -FirewallPolicyId $fp
209+
```
210+
211+
This example creates a Firewall attached to virtual network "vnet" in the same resource group as the firewall.
212+
The rules and threat intelligence that will be applied to the firewall will be taken from the firewall policy
213+
202214
## PARAMETERS
203215

204216
### -ApplicationRuleCollection

0 commit comments

Comments
 (0)