|
| 1 | +--- |
| 2 | +title: 'Quickstart: Create an Azure Firewall and a firewall policy - Resource Manager template' |
| 3 | +description: In this quickstart, you learn how to secure your virtual hub using Azure Firewall Manager. |
| 4 | +services: firewall-manager |
| 5 | +author: vhorne |
| 6 | +ms.service: firewall-manager |
| 7 | +ms.topic: quickstart |
| 8 | +ms.custom: subject-armqs |
| 9 | +ms.date: 02/16/2021 |
| 10 | +ms.author: victorh |
| 11 | +--- |
| 12 | + |
| 13 | +# Quickstart: Create an Azure Firewall and a firewall policy - ARM template |
| 14 | + |
| 15 | +In this quickstart, you use an Azure Resource Manager template (ARM template) to create an Azure Firewall and a firewall policy. The deployed firewall has a policy with an application rule that allow connections to `www.microsoft.com` and a rule that allows connections to Windows Update using the **WindowsUpdate** FQDN tag. A network rule allows UDP connections to a time server at 13.86.101.172. |
| 16 | + |
| 17 | +Also, IP Groups are used in the rules to define the **Source** IP addresses. |
| 18 | + |
| 19 | +[!INCLUDE [About Azure Resource Manager](../../includes/resource-manager-quickstart-introduction.md)] |
| 20 | + |
| 21 | +For information about Azure Firewall Manager, see [What is Azure Firewall Manager?](overview.md). |
| 22 | +For information about Azure Firewall, see [What is Azure Firewall?](../firewall/overview.md). |
| 23 | +For information about IP Groups, see [IP Groups in Azure Firewall](../firewall/ip-groups.md). |
| 24 | + |
| 25 | +If your environment meets the prerequisites and you're familiar with using ARM templates, select the **Deploy to Azure** button. The template will open in the Azure portal. |
| 26 | + |
| 27 | +[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-azurefirewall-create-with-firewallpolicy-apprule-netrule-ipgroups%2Fazuredeploy.json) |
| 28 | + |
| 29 | +## Prerequisites |
| 30 | + |
| 31 | +- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F). |
| 32 | + |
| 33 | +## Review the template |
| 34 | + |
| 35 | +This template creates a secured virtual hub using Azure Firewall Manager, along with the necessary resources to support the scenario. |
| 36 | + |
| 37 | +The template used in this quickstart is from [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/101-azurefirewall-create-with-firewallpolicy-apprule-netrule-ipgroups/). |
| 38 | + |
| 39 | +:::code language="json" source="~/quickstart-templates/101-azurefirewall-create-with-firewallpolicy-apprule-netrule-ipgroups/azuredeploy.json"::: |
| 40 | + |
| 41 | +Multiple Azure resources are defined in the template: |
| 42 | + |
| 43 | +- [**Microsoft.Network/ipGroups**](/azure/templates/microsoft.network/ipGroups) |
| 44 | +- [**Microsoft.Network/firewallPolicies**](/azure/templates/microsoft.network/firewallPolicies) |
| 45 | +- [**Microsoft.Network/firewallPolicies/ruleCollectionGroups**](/azure/templates/microsoft.network/firewallPolicies/ruleCollectionGroups) |
| 46 | +- [**Microsoft.Network/azureFirewalls**](/azure/templates/microsoft.network/azureFirewalls) |
| 47 | +- [**Microsoft.Network/virtualNetworks**](/azure/templates/microsoft.network/virtualnetworks) |
| 48 | +- [**Microsoft.Network/publicIPAddresses**](/azure/templates/microsoft.network/publicipaddresses) |
| 49 | + |
| 50 | +## Deploy the template |
| 51 | + |
| 52 | +Deploy the ARM template to Azure: |
| 53 | + |
| 54 | +1. Select **Deploy to Azure** to sign in to Azure and open the template. The template creates an Azure Firewall, a virtual WAN and virtual hub, the network infrastructure, and two virtual machines. |
| 55 | + |
| 56 | + [](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-azurefirewall-create-with-firewallpolicy-apprule-netrule-ipgroups%2Fazuredeploy.json) |
| 57 | + |
| 58 | +2. In the portal, on the **Create a Firewall and FirewallPolicy with Rules and Ipgroups** page, type or select the following values: |
| 59 | + - Subscription: Select from existing subscriptions. |
| 60 | + - Resource group: Select from existing resource groups or select **Create new**, and select **OK**. |
| 61 | + - Region: Select a region. |
| 62 | + - Firewall Name: type a name for the firewall. |
| 63 | + |
| 64 | +3. Select **Review + create** and then select **Create**. The deployment can take 10 minutes or longer to complete. |
| 65 | + |
| 66 | +## Review deployed resources |
| 67 | + |
| 68 | +After deployment completes, you'll see the following similar resources. |
| 69 | + |
| 70 | +:::image type="content" source="media/quick-firewall-policy/qs-deployed-resources.png" alt-text="Deployed resources"::: |
| 71 | + |
| 72 | +## Clean up resources |
| 73 | + |
| 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. |
| 75 | + |
| 76 | +To delete the resource group, call the `Remove-AzResourceGroup` cmdlet: |
| 77 | + |
| 78 | +```azurepowershell-interactive |
| 79 | +Remove-AzResourceGroup -Name "<your resource group name>" |
| 80 | +``` |
| 81 | + |
| 82 | +## Next steps |
| 83 | + |
| 84 | +> [!div class="nextstepaction"] |
| 85 | +> [Azure Firewall Manager policy overview](policy-overview.md) |
0 commit comments