Skip to content

Commit 4e80f21

Browse files
authored
Merge pull request #209200 from mumian/0825-firewall-ip-group
[Azure Firewall] - ip groups
2 parents b6afd52 + 48130a2 commit 4e80f21

File tree

5 files changed

+144
-29
lines changed

5 files changed

+144
-29
lines changed

articles/firewall/deploy-template.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ The template used in this quickstart is from [Azure Quickstart Templates](https:
4242

4343
Multiple Azure resources are defined in the template:
4444

45-
- [**Microsoft.Storage/storageAccounts**](/azure/templates/microsoft.storage/storageAccounts)
46-
- [**Microsoft.Network/routeTables**](/azure/templates/microsoft.network/routeTables)
47-
- [**Microsoft.Network/networkSecurityGroups**](/azure/templates/microsoft.network/networksecuritygroups)
48-
- [**Microsoft.Network/virtualNetworks**](/azure/templates/microsoft.network/virtualnetworks)
49-
- [**Microsoft.Network/publicIPAddresses**](/azure/templates/microsoft.network/publicipaddresses)
50-
- [**Microsoft.Network/networkInterfaces**](/azure/templates/microsoft.network/networkinterfaces)
51-
- [**Microsoft.Compute/virtualMachines**](/azure/templates/microsoft.compute/virtualmachines)
52-
- [**Microsoft.Network/azureFirewalls**](/azure/templates/microsoft.network/azureFirewalls)
45+
- [**Microsoft.Storage/storageAccounts**](/azure/templates/microsoft.storage/storageAccounts?pivots=deployment-language-arm-template)
46+
- [**Microsoft.Network/routeTables**](/azure/templates/microsoft.network/routeTables?pivots=deployment-language-arm-template)
47+
- [**Microsoft.Network/networkSecurityGroups**](/azure/templates/microsoft.network/networksecuritygroups?pivots=deployment-language-arm-template)
48+
- [**Microsoft.Network/virtualNetworks**](/azure/templates/microsoft.network/virtualnetworks?pivots=deployment-language-arm-template)
49+
- [**Microsoft.Network/publicIPAddresses**](/azure/templates/microsoft.network/publicipaddresses?pivots=deployment-language-arm-template)
50+
- [**Microsoft.Network/networkInterfaces**](/azure/templates/microsoft.network/networkinterfaces?pivots=deployment-language-arm-template)
51+
- [**Microsoft.Compute/virtualMachines**](/azure/templates/microsoft.compute/virtualmachines?pivots=deployment-language-arm-template)
52+
- [**Microsoft.Network/azureFirewalls**](/azure/templates/microsoft.network/azureFirewalls?pivots=deployment-language-arm-template)
5353

5454
## Deploy the template
5555

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
---
2+
title: 'Quickstart: Create an Azure Firewall and IP Groups - Bicep'
3+
description: In this quickstart, you learn how to use a Bicep file to create an Azure Firewall and IP Groups.
4+
services: firewall
5+
author: vhorne
6+
ms.service: firewall
7+
ms.topic: quickstart
8+
ms.custom: subject-bicepqs, devx-track-azurepowershell, mode-arm
9+
ms.date: 08/25/2022
10+
ms.author: victorh
11+
---
12+
13+
# Quickstart: Create an Azure Firewall and IP Groups - Bicep
14+
15+
In this quickstart, you use a Bicep file to deploy an Azure Firewall with sample IP Groups used in a network rule and application rule. An IP Group is a top-level resource that allows you to define and group IP addresses, ranges, and subnets into a single object. IP Group is useful for managing IP addresses in Azure Firewall rules. You can either manually enter IP addresses or import them from a file.
16+
17+
[!INCLUDE [About Bicep](../../includes/resource-manager-quickstart-bicep-introduction.md)]
18+
19+
## Prerequisites
20+
21+
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
22+
23+
## Review the Bicep file
24+
25+
This Bicep file creates an Azure Firewall and IP Groups, along with the necessary resources to support the Azure Firewall.
26+
27+
The Bicep file used in this quickstart is from [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/azurefirewall-create-with-ipgroups-and-linux-jumpbox).
28+
29+
:::code language="bicep" source="~/quickstart-templates/quickstarts/microsoft.network/azurefirewall-create-with-ipgroups-and-linux-jumpbox/main.bicep":::
30+
31+
Multiple Azure resources are defined in the Bicep file:
32+
33+
- [**Microsoft.Network/ipGroups**](/azure/templates/microsoft.network/ipGroups?pivots=deployment-language-bicep)
34+
- [**Microsoft.Storage/storageAccounts**](/azure/templates/microsoft.storage/storageAccounts?pivots=deployment-language-bicep)
35+
- [**Microsoft.Network/routeTables**](/azure/templates/microsoft.network/routeTables?pivots=deployment-language-bicep)
36+
- [**Microsoft.Network/networkSecurityGroups**](/azure/templates/microsoft.network/networksecuritygroups?pivots=deployment-language-bicep)
37+
- [**Microsoft.Network/virtualNetworks**](/azure/templates/microsoft.network/virtualnetworks?pivots=deployment-language-bicep)
38+
- [**Microsoft.Network/publicIPAddresses**](/azure/templates/microsoft.network/publicipaddresses?pivots=deployment-language-bicep)
39+
- [**Microsoft.Network/networkInterfaces**](/azure/templates/microsoft.network/networkinterfaces?pivots=deployment-language-bicep)
40+
- [**Microsoft.Compute/virtualMachines**](/azure/templates/microsoft.compute/virtualmachines?pivots=deployment-language-bicep)
41+
- [**Microsoft.Network/azureFirewalls**](/azure/templates/microsoft.network/azureFirewalls?pivots=deployment-language-bicep)
42+
43+
## Deploy the Bicep file
44+
45+
1. Save the Bicep file as **main.bicep** to your local computer.
46+
1. Deploy the Bicep file using either Azure CLI or Azure PowerShell.
47+
48+
# [CLI](#tab/CLI)
49+
50+
```azurecli
51+
az group create --name exampleRG --location eastus
52+
az deployment group create --resource-group exampleRG --template-file main.bicep
53+
```
54+
55+
# [PowerShell](#tab/PowerShell)
56+
57+
```azurepowershell
58+
New-AzResourceGroup -Name exampleRG -Location eastus
59+
New-AzResourceGroupDeployment -ResourceGroupName exampleRG -TemplateFile ./main.bicep
60+
```
61+
62+
---
63+
64+
You'll be prompted to enter the following values:
65+
66+
- **Admin Username**: Type username for the administrator user account
67+
- **Admin Password**: Type an administrator password or key
68+
69+
When the deployment finishes, you should see a message indicating the deployment succeeded.
70+
71+
## Review deployed resources
72+
73+
Use the Azure portal, Azure CLI, or Azure PowerShell to validate the deployment and review the deployed resources.
74+
75+
# [CLI](#tab/CLI)
76+
77+
```azurecli-interactive
78+
az resource list --resource-group exampleRG
79+
```
80+
81+
# [PowerShell](#tab/PowerShell)
82+
83+
```azurepowershell-interactive
84+
Get-AzResource -ResourceGroupName exampleRG
85+
```
86+
87+
---
88+
89+
To learn about the Bicep syntax and properties for a firewall in a Bicep file, see [Microsoft.Network azureFirewalls template reference](/azure/templates/microsoft.network/azurefirewalls?pivots=deployment-language-bicep).
90+
91+
## Clean up resources
92+
93+
When you no longer need them, use the Azure portal, Azure CLI, or Azure PowerShell to remove the resource group, firewall, and all related resources.
94+
95+
# [CLI](#tab/CLI)
96+
97+
```azurecli-interactive
98+
az group delete --name exampleRG
99+
```
100+
101+
# [PowerShell](#tab/PowerShell)
102+
103+
```azurepowershell-interactive
104+
Remove-AzResourceGroup -Name exampleRG
105+
```
106+
107+
---
108+
109+
## Next steps
110+
111+
> [!div class="nextstepaction"]
112+
> [Tutorial: Deploy and configure Azure Firewall in a hybrid network using the Azure portal](tutorial-hybrid-portal.md)

articles/firewall/quick-create-ipgroup-template.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ The template used in this quickstart is from [Azure Quickstart Templates](https:
3434

3535
Multiple Azure resources are defined in the template:
3636

37-
- [**Microsoft.Network/ipGroups**](/azure/templates/microsoft.network/ipGroups)
38-
- [**Microsoft.Storage/storageAccounts**](/azure/templates/microsoft.storage/storageAccounts)
39-
- [**Microsoft.Network/routeTables**](/azure/templates/microsoft.network/routeTables)
40-
- [**Microsoft.Network/networkSecurityGroups**](/azure/templates/microsoft.network/networksecuritygroups)
41-
- [**Microsoft.Network/virtualNetworks**](/azure/templates/microsoft.network/virtualnetworks)
42-
- [**Microsoft.Network/publicIPAddresses**](/azure/templates/microsoft.network/publicipaddresses)
43-
- [**Microsoft.Network/networkInterfaces**](/azure/templates/microsoft.network/networkinterfaces)
44-
- [**Microsoft.Compute/virtualMachines**](/azure/templates/microsoft.compute/virtualmachines)
45-
- [**Microsoft.Network/azureFirewalls**](/azure/templates/microsoft.network/azureFirewalls)
37+
- [**Microsoft.Network/ipGroups**](/azure/templates/microsoft.network/ipGroups?pivots=deployment-language-arm-template)
38+
- [**Microsoft.Storage/storageAccounts**](/azure/templates/microsoft.storage/storageAccounts?pivots=deployment-language-arm-template)
39+
- [**Microsoft.Network/routeTables**](/azure/templates/microsoft.network/routeTables?pivots=deployment-language-arm-template)
40+
- [**Microsoft.Network/networkSecurityGroups**](/azure/templates/microsoft.network/networksecuritygroups?pivots=deployment-language-arm-template)
41+
- [**Microsoft.Network/virtualNetworks**](/azure/templates/microsoft.network/virtualnetworks?pivots=deployment-language-arm-template)
42+
- [**Microsoft.Network/publicIPAddresses**](/azure/templates/microsoft.network/publicipaddresses?pivots=deployment-language-arm-template)
43+
- [**Microsoft.Network/networkInterfaces**](/azure/templates/microsoft.network/networkinterfaces?pivots=deployment-language-arm-template)
44+
- [**Microsoft.Compute/virtualMachines**](/azure/templates/microsoft.compute/virtualmachines?pivots=deployment-language-arm-template)
45+
- [**Microsoft.Network/azureFirewalls**](/azure/templates/microsoft.network/azureFirewalls?pivots=deployment-language-arm-template)
4646

4747
## Deploy the template
4848

articles/firewall/quick-create-multiple-ip-template.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: 'Quickstart: Create an Azure Firewall with multiple public IP addresses - Resource Manager template'
3-
description: In this quickstart, you learn how to use a Azure Resource Manager template (ARM template) to create an Azure Firewall with multiple public IP addresses.
3+
description: In this quickstart, you learn how to use an Azure Resource Manager template (ARM template) to create an Azure Firewall with multiple public IP addresses.
44
services: firewall
55
author: vhorne
66
ms.service: firewall
@@ -36,15 +36,15 @@ The template used in this quickstart is from [Azure Quickstart Templates](https:
3636

3737
Multiple Azure resources are defined in the template:
3838

39-
- [**Microsoft.Network/networkSecurityGroups**](/azure/templates/microsoft.network/networksecuritygroups)
40-
- [**Microsoft.Network/publicIPPrefix**](/azure/templates/microsoft.network/publicipprefixes)
41-
- [**Microsoft.Network/publicIPAddresses**](/azure/templates/microsoft.network/publicipaddresses)
42-
- [**Microsoft.Network/virtualNetworks**](/azure/templates/microsoft.network/virtualnetworks)
43-
- [**Microsoft.Compute/virtualMachines**](/azure/templates/microsoft.compute/virtualmachines)
44-
- [**Microsoft.Storage/storageAccounts**](/azure/templates/microsoft.storage/storageAccounts)
45-
- [**Microsoft.Network/networkInterfaces**](/azure/templates/microsoft.network/networkinterfaces)
46-
- [**Microsoft.Network/azureFirewalls**](/azure/templates/microsoft.network/azureFirewalls)
47-
- [**Microsoft.Network/routeTables**](/azure/templates/microsoft.network/routeTables)
39+
- [**Microsoft.Network/networkSecurityGroups**](/azure/templates/microsoft.network/networksecuritygroups?pivots=deployment-language-arm-template)
40+
- [**Microsoft.Network/publicIPPrefix**](/azure/templates/microsoft.network/publicipprefixes?pivots=deployment-language-arm-template)
41+
- [**Microsoft.Network/publicIPAddresses**](/azure/templates/microsoft.network/publicipaddresses?pivots=deployment-language-arm-template)
42+
- [**Microsoft.Network/virtualNetworks**](/azure/templates/microsoft.network/virtualnetworks?pivots=deployment-language-arm-template)
43+
- [**Microsoft.Compute/virtualMachines**](/azure/templates/microsoft.compute/virtualmachines?pivots=deployment-language-arm-template)
44+
- [**Microsoft.Storage/storageAccounts**](/azure/templates/microsoft.storage/storageAccounts?pivots=deployment-language-arm-template)
45+
- [**Microsoft.Network/networkInterfaces**](/azure/templates/microsoft.network/networkinterfaces?pivots=deployment-language-arm-template)
46+
- [**Microsoft.Network/azureFirewalls**](/azure/templates/microsoft.network/azureFirewalls?pivots=deployment-language-arm-template)
47+
- [**Microsoft.Network/routeTables**](/azure/templates/microsoft.network/routeTables?pivots=deployment-language-arm-template)
4848

4949
## Deploy the template
5050

@@ -67,11 +67,11 @@ Deploy the ARM template to Azure:
6767

6868
In the Azure portal, review the deployed resources. Note the firewall public IP addresses.
6969

70-
Use Remote Desktop Connection to connect to the firewall public IP addresses. Successful connections demonstrates firewall NAT rules that allow the connection to the backend servers.
70+
Use Remote Desktop Connection to connect to the firewall public IP addresses. Successful connections demonstrate firewall NAT rules that allow the connection to the backend servers.
7171

7272
## Clean up resources
7373

74-
When you no longer need the resources that you created with the firewall, delete the resource group. This removes the firewall and all the related resources.
74+
When you no longer need the resources that you created with the firewall, delete the resource group. Deleting the resource group removes the firewall and all the related resources.
7575

7676
To delete the resource group, call the `Remove-AzResourceGroup` cmdlet:
7777

articles/firewall/toc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ items:
1010
- name: Quickstarts
1111
expanded: true
1212
items:
13+
- name: Deploy with IP Groups - Bicep
14+
displayName: Resource Manager,arm,template
15+
href: quick-create-ipgroup-bicep.md
1316
- name: Deploy with IP Groups - ARM template
1417
displayName: Resource Manager
1518
href: quick-create-ipgroup-template.md

0 commit comments

Comments
 (0)