Complete the code to create an Azure Firewall resource in a resource group.
az network firewall create --name myFirewall --resource-group [1] --location eastusThe --resource-group parameter specifies the resource group where the firewall will be created. Here, centralRG is the correct resource group name.
Complete the code to create a firewall policy named 'centralPolicy'.
az network firewall policy create --name [1] --resource-group centralRGThe --name parameter sets the name of the firewall policy. Here, centralPolicy is the intended name.
Fix the error in the command to associate the firewall policy with the firewall.
az network firewall update --name myFirewall --resource-group centralRG --[1] centralPolicyThe correct parameter to associate a firewall policy is --firewall-policy.
Fill both blanks to create a network rule collection that allows HTTP traffic.
az network firewall network-rule collection create --firewall-name myFirewall --resource-group centralRG --name AllowHTTP --priority 100 --action Allow --rule-name [1] --protocols [2] --source-addresses '*' --destination-ports 80 --destination-addresses '*'
The rule name should be descriptive like AllowHTTPRule. HTTP uses the TCP protocol, so TCP is correct for protocols.
Fill all three blanks to create an application rule collection allowing access to example.com.
az network firewall application-rule collection create --firewall-name myFirewall --resource-group centralRG --name AllowWeb --priority 200 --action Allow --rule-name [1] --protocols [2] --target-fqdns [3] --source-addresses '*'
The rule name AllowExampleRule describes the purpose. HTTPS protocol on port 443 is typical for secure web access, and example.com is the target domain.