Using Console
Using CLI
az login
az account set --subscription <subscription_id>
az network application-gateway waf-policy set --name <waf_policy_name> --resource-group <resource_group_name> --firewall-mode Detection
Note: Replace <waf_policy_name>
and <resource_group_name>
with the actual names of your WAF policy and resource group.
az network application-gateway waf-policy show --name <waf_policy_name> --resource-group <resource_group_name>
This command will display the details of your WAF policy, including the firewall mode which should now be set to “Detection”.
Using Python