Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WAF as a top level resource #5341

Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,10 @@
"name": "ApplicationGatewayBackendHealthServerHealth",
"modelAsString": true
}
},
"healthProbeLog": {
"type": "string",
"description": "Health Probe Log."
}
},
"description": "Application gateway backendhealth http settings."
Expand Down Expand Up @@ -1925,6 +1929,10 @@
"$ref": "#/definitions/ApplicationGatewayWebApplicationFirewallConfiguration",
"description": "Web application firewall configuration."
},
"firewallPolicy": {
"$ref": "./network.json#/definitions/SubResource",
"description": "Reference of the FirewallPolicy resource."
},
"enableHttp2": {
"type": "boolean",
"description": "Whether HTTP2 is enabled on the application gateway resource."
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"parameters": {
"api-version": "2018-12-01",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Policy1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1",
"type": "Microsoft.Network/applicationgatewaywebapplicationfirewallpolicies",
"tags": {
"key1": "value1",
"key2": "value2"
},
"location": "WestUs",
"properties": {
"resourceState": "Enabled",
"provisioningState": "Succeeded",
"policySettings": {
"enabledState": "Enabled",
"mode": "Prevention"
},
"customRules": {
"rules": [
{
"name": "Rule1",
"priority": 1,
"ruleType": "MatchRule",
"matchConditions": [
{
"matchVariables": [
{
"name": "RemoteAddr",
"selector": null
}
],
"operator": "IPMatch",
"negateCondition": false,
"matchValues": [
"192.168.1.0/24",
"10.0.0.0/24"
],
"transforms": []
}
],
"action": "Block"
},
{
"name": "Rule2",
"priority": 2,
"ruleType": "MatchRule",
"matchConditions": [
{
"matchVariables": [
{
"name": "RemoteAddr",
"selector": null
}
],
"operator": "IPMatch",
"negateCondition": false,
"matchValues": [
"10.0.0.0/24"
],
"transforms": []
},
{
"matchVariables": [
{
"name": "RequestHeader",
"selector": "UserAgent"
}
],
"operator": "Contains",
"negateCondition": false,
"matchValues": [
"Windows"
],
"transforms": []
}
],
"action": "Block"
}
]
}
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"parameters": {
"api-version": "2018-12-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Policy1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/Policy1",
"type": "Microsoft.Network/applicationgatewaywebapplicationfirewallpolicies",
"tags": {
"key1": "value1",
"key2": "value2"
},
"location": "WestUs",
"properties": {
"resourceState": "Enabled",
"provisioningState": "Succeeded",
"policySettings": {
"enabledState": "Enabled",
"mode": "Prevention"
},
"customRules": {
"rules": [
{
"name": "Rule1",
"priority": 1,
"ruleType": "MatchRule",
"matchConditions": [
{
"matchVariables": [
{
"name": "RemoteAddr",
"selector": null
}
],
"operator": "IPMatch",
"negateCondition": false,
"matchValues": [
"192.168.1.0/24",
"10.0.0.0/24"
]
}
],
"action": "Block"
},
{
"name": "Rule2",
"priority": 2,
"ruleType": "MatchRule",
"matchConditions": [
{
"matchVariables": [
{
"name": "RemoteAddr",
"selector": null
}
],
"operator": "IPMatch",
"negateCondition": false,
"matchValues": [
"10.0.0.0/24"
]
},
{
"matchVariables": [
{
"name": "RequestHeader",
"selector": "UserAgent"
}
],
"operator": "Contains",
"negateCondition": false,
"matchValues": [
"Windows"
]
}
],
"action": "Block"
}
]
}
}
}
]
}
}
}
}
Loading