Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Azure Firewall for centralized security
📖 Scenario: You are working as a cloud engineer for a company that wants to secure its network traffic centrally using Azure Firewall. The company has multiple virtual networks and wants to control inbound and outbound traffic with a single firewall.
🎯 Goal: Build an Azure Firewall resource with a firewall policy and apply it to a virtual network to centralize security management.
📋 What You'll Learn
Create an Azure Firewall resource named centralFirewall in resource group NetworkRG and location eastus.
Create a firewall policy named centralFirewallPolicy in the same resource group and location.
Add a network rule collection named AllowWebTraffic to the firewall policy that allows outbound TCP traffic on ports 80 and 443 to any destination.
Associate the firewall policy centralFirewallPolicy with the Azure Firewall centralFirewall.
💡 Why This Matters
🌍 Real World
Centralized network security is critical for organizations to control and monitor traffic across multiple virtual networks and regions. Azure Firewall provides a scalable and manageable solution.
💼 Career
Cloud engineers and network administrators use Azure Firewall to enforce security policies, protect resources, and comply with organizational standards.
Progress0 / 4 steps
1
Create Azure Firewall resource
Create an Azure Firewall resource named centralFirewall in resource group NetworkRG and location eastus using the Azure CLI command az network firewall create.
Azure
Hint
Use the az network firewall create command with the exact resource group, name, and location.
2
Create Azure Firewall Policy
Create an Azure Firewall Policy named centralFirewallPolicy in resource group NetworkRG and location eastus using the Azure CLI command az network firewall policy create.
Azure
Hint
Use the az network firewall policy create command with the exact policy name, resource group, and location.
3
Add network rule collection to firewall policy
Add a network rule collection named AllowWebTraffic to the firewall policy centralFirewallPolicy that allows outbound TCP traffic on ports 80 and 443 to any destination using the Azure CLI command az network firewall policy rule-collection-group collection add-filter-collection.
Azure
Hint
Use the az network firewall policy rule-collection-group collection add-filter-collection command with the exact parameters to allow outbound web traffic.
4
Associate firewall policy with Azure Firewall
Associate the firewall policy centralFirewallPolicy with the Azure Firewall centralFirewall using the Azure CLI command az network firewall update with the --firewall-policy parameter.
Azure
Hint
Use the az network firewall update command with the --firewall-policy parameter to link the policy.
Practice
(1/5)
1. What is the primary purpose of Azure Firewall in a cloud environment?
easy
A. To centralize network security and control traffic
B. To store large amounts of data securely
C. To provide virtual machines for computing
D. To manage user identities and access
Solution
Step 1: Understand Azure Firewall's role
Azure Firewall is designed to protect cloud resources by controlling and monitoring network traffic centrally.
Step 2: Differentiate from other services
Storing data, providing VMs, or managing identities are roles of other Azure services, not Azure Firewall.
Final Answer:
To centralize network security and control traffic -> Option A
Using a hub-and-spoke model, one Azure Firewall in the hub network protects multiple spoke networks by routing traffic through it.
Step 2: Evaluate other options
Deploying multiple firewalls increases cost and complexity; NSGs alone don't provide centralized control; firewall needs public IP for internet traffic.
Final Answer:
Deploy one Azure Firewall in a hub virtual network and route traffic from spoke networks through it -> Option C
Quick Check:
Hub-and-spoke with one firewall = centralized security [OK]
Hint: Use hub network firewall to protect multiple spokes [OK]