Using Console
Using CLI
az login
.Step 2: Once you are logged in, run the command az network firewall show --name <NGFW-Name> --resource-group <Resource-Group-Name> --query "enableDnsProxy"
. This command will check if the DNS proxy is enabled on the NGFW or not.Step 3: If the output of the above command is “false”, then run the command az network firewall update --name <NGFW-Name> --resource-group <Resource-Group-Name> --enable-dns-proxy true
. This command will enable the DNS proxy on the NGFW.Step 4: Once the DNS proxy is enabled on the NGFW, you can verify it by running the command az network firewall show --name <NGFW-Name> --resource-group <Resource-Group-Name> --query "enableDnsProxy"
. The output of this command should be “true”.Step 5: Finally, you can check if the misconfiguration is remediated or not by checking the Monitor NGFW setting. If it is enabled, then the misconfiguration is remediated successfully.Note: Replace <NGFW-Name>
with the name of your NGFW and <Resource-Group-Name>
with the name of your resource group.Using Python