question

SandeepYarashi-3149 avatar image
0 Votes"
SandeepYarashi-3149 asked JL-0718 answered

How to create exclusion list of waf in azure using Terraform

I want to create exclusion list in Azure for waf using Terraform is there a document or sample script for it

azure-application-gateway
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.

1 Answer

JL-0718 avatar image
0 Votes"
JL-0718 answered

Hi Sandeep,

have you seen this?


   exclusions: [
     {
       matchVariable: 'string'
       selector: 'string'
       selectorMatchOperator: 'string'
     }
   ]
   fileUploadLimitInMb: int
   firewallMode: 'string'
   maxRequestBodySize: int
   maxRequestBodySizeInKb: int
   requestBodyCheck: bool
   ruleSetType: 'string'
   ruleSetVersion: 'string'
 }

}
zones: [ 'string' ]
}


https://docs.microsoft.com/en-us/azure/templates/microsoft.network/applicationgateways?tabs=bicep#applicationgatewayfirewallexclusion

I am just not sure how to proceed, would it look like this maybe in the JSON code, see example here below. I am going to try it out now.

exclusions: [
{
matchVariable: 'Exclusion1'
selector: 'string'
selectorMatchOperator: 'string'
}
{
matchVariable: 'Exclusion2'
selector: 'string'
selectorMatchOperator: 'string'
}

{
matchVariable: 'Exclusion3'
selector: 'string'
selectorMatchOperator: 'string'
}
]

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.