question

JanKosmala-8085 avatar image
0 Votes"
JanKosmala-8085 asked RaviVarmanMSFT-5919 commented

enable diagnostics on WAF with ARM template

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JanKosmala-8085 avatar image
0 Votes"
JanKosmala-8085 answered RaviVarmanMSFT-5919 commented

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)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RaviVarmanMSFT-5919 avatar image
0 Votes"
RaviVarmanMSFT-5919 answered

Hi @JanKosmala-8085

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


template.txt (2.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.