enable diagnostics on WAF with ARM template

Jan Kosmala 121 Reputation points
2021-06-11T19:09:08.427+00:00

I was looking for enabling diagnostics on WAF for ApplicationGatewayFirewallLog in ARM template, to send them to Log Analytics workspace, however I haven't find any reasonable solution. Could you please advise what is the best way of achieving this?

Azure Web Application Firewall
0 comments No comments
{count} votes

Accepted answer
  1. Jan Kosmala 121 Reputation points
    2021-06-12T07:49:30.437+00:00

    I found a workaround for now - using CLI it's very simple following az monitor diagnostic-settings create CLI command, it's now ARM template however it's good enough as starting point (with workspace created by ARM template)

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. RaviVarmanMSFT 626 Reputation points Microsoft Employee
    2021-06-16T10:37:23.803+00:00

    Hi @Jan Kosmala

    Attached file will help you to enable diagnostic logs on your Application gateway. The file enables all logs like access, performance and Firewall. It enables all metrics. You can edit based on your requirement.

    106231-template.txt

    Hope this was helpful. Please let us know in case of any additional questions or concerns.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well

    0 comments No comments