Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
aa66b73
Adds base for updating Microsoft.Network from version stable/2020-11-…
jielichen May 13, 2022
513aff1
Updates readme
jielichen May 13, 2022
f045164
Updates API version in new specs and examples
jielichen May 13, 2022
c146fb4
Add frontdoor waf Patch version 2022-05-01
jielichen May 16, 2022
9c37719
Adds suppression to readme
jielichen May 16, 2022
e9fe792
Adds suppression to readme
jielichen May 16, 2022
43db15f
Fix format errors
jielichen May 16, 2022
9cedceb
Merge branch 'dev-frontdoor-Microsoft.Network-2022-05-01-WAFPatch' of…
jielichen May 16, 2022
6b606bc
Fix validation issues
jielichen May 17, 2022
ddb8af2
Fix ModelValidation error
jielichen May 17, 2022
20b5cbc
fix valiation errors
jielichen May 17, 2022
351816b
Adds suppression to readme
jielichen May 17, 2022
1f7dd59
Fix valiation error
jielichen May 17, 2022
71dbf99
Merge branch 'dev-frontdoor-Microsoft.Network-2022-05-01-WAFPatch' of…
jielichen May 17, 2022
4954ead
Fix lintdiff error
jielichen May 17, 2022
20ca617
Fix lintdiff error
jielichen May 17, 2022
9a21265
Fix lintdiff error
jielichen May 17, 2022
351e714
Fix code format
jielichen May 17, 2022
b21f152
Fix DefaultErrorResponseSchema lintDiff
jielichen May 24, 2022
2d9fbdd
Fix PrettierCheck error
jielichen May 24, 2022
6ba2acf
Change ErrorResponse schema
jielichen May 25, 2022
6fd6934
Update network.json
jielichen May 26, 2022
490b813
Adds suppression to readme
jielichen Jun 15, 2022
ef1220f
Adds suppression to readme
jielichen Jun 15, 2022
6a31405
Adds suppression to readme
jielichen Jun 15, 2022
6dd9f9a
Adds suppression to readme
jielichen Jun 15, 2022
f892207
Adds suppression to readme
jielichen Jun 15, 2022
7f5bcb5
Adds suppression to readme
jielichen Jun 15, 2022
7c1f58a
Adds suppression to readme
jielichen Jun 15, 2022
fc81fac
suppress LintDiff
jielichen Jun 15, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"parameters": {
"api-version": "2022-05-01",
"subscriptionId": "subid"
},
"responses": {
"200": {
"body": {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test2

"value": [
{
"name": "DefaultRuleSet_1.0",
"id": "/subscriptions/subid/providers/Microsoft.Network/FrontDoorWebApplicationFirewallManagedRuleSets",
"type": "Microsoft.Network/frontdoorwebapplicationfirewallmanagedrulesets",
"properties": {
"provisioningState": "Succeeded",
"ruleSetId": "8125d145-ddc5-4d90-9bc3-24c5f2de69a2",
"ruleSetType": "DefaultRuleSet",
"ruleSetVersion": "1.0",
"ruleGroups": [
{
"ruleGroupName": "SQLI",
"description": "SQL injection",
"rules": [
{
"ruleId": "942100",
"description": "SQL Injection Attack Detected via libinjection",
"defaultState": "Enabled",
"defaultAction": "Block"
},
{
"ruleId": "942110",
"description": "SQL Injection Attack: Common Injection Testing Detected",
"defaultState": "Enabled",
"defaultAction": "Block"
}
]
},
{
"ruleGroupName": "XSS",
"description": "Cross-site scripting",
"rules": [
{
"ruleId": "941100",
"description": "XSS Attack Detected via libinjection",
"defaultState": "Enabled",
"defaultAction": "Block"
},
{
"ruleId": "941101",
"description": "XSS Attack Detected via libinjection",
"defaultState": "Enabled",
"defaultAction": "Block"
},
{
"ruleId": "941110",
"description": "XSS Filter - Category 1: Script Tag Vector",
"defaultState": "Enabled",
"defaultAction": "Block"
}
]
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"parameters": {
"api-version": "2022-05-01",
"subscriptionId": "subid",
"resourceGroupName": "rg1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Policy1",
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/Policy1",
"type": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies",
"tags": {
"key1": "value1",
"key2": "value2"
},
"location": "WestUs",
"sku": {
"name": "Classic_AzureFrontDoor"
},
"properties": {
"resourceState": "Enabled",
"provisioningState": "Succeeded",
"policySettings": {
"enabledState": "Enabled",
"mode": "Prevention",
"redirectUrl": "http://www.bing.com",
"customBlockResponseStatusCode": 499,
"customBlockResponseBody": "PGh0bWw+CjxoZWFkZXI+PHRpdGxlPkhlbGxvPC90aXRsZT48L2hlYWRlcj4KPGJvZHk+CkhlbGxvIHdvcmxkCjwvYm9keT4KPC9odG1sPg=="
},
"customRules": {
"rules": [
{
"name": "Rule1",
"priority": 1,
"enabledState": "Enabled",
"ruleType": "RateLimitRule",
"rateLimitDurationInMinutes": 0,
"rateLimitThreshold": 1000,
"matchConditions": [
{
"matchVariable": "RemoteAddr",
"selector": null,
"operator": "IPMatch",
"negateCondition": false,
"matchValue": [
"192.168.1.0/24",
"10.0.0.0/24"
],
"transforms": []
}
],
"action": "Block"
},
{
"name": "Rule2",
"priority": 2,
"enabledState": "Enabled",
"ruleType": "MatchRule",
"rateLimitDurationInMinutes": 0,
"rateLimitThreshold": 0,
"matchConditions": [
{
"matchVariable": "RemoteAddr",
"selector": null,
"operator": "GeoMatch",
"negateCondition": false,
"matchValue": [
"CH"
]
},
{
"matchVariable": "RequestHeader",
"selector": "UserAgent",
"operator": "Contains",
"negateCondition": false,
"matchValue": [
"windows"
],
"transforms": [
"Lowercase"
]
}
],
"action": "Block"
}
]
},
"managedRules": {
"managedRuleSets": [
{
"ruleSetType": "DefaultRuleSet",
"ruleSetVersion": "1.0",
"exclusions": [
{
"matchVariable": "RequestHeaderNames",
"selectorMatchOperator": "Equals",
"selector": "User-Agent"
}
],
"ruleGroupOverrides": [
{
"ruleGroupName": "SQLI",
"rules": [
{
"ruleId": "942100",
"enabledState": "Enabled",
"action": "Redirect"
},
{
"ruleId": "942110",
"enabledState": "Disabled"
}
]
}
]
}
]
},
"frontendEndpointLinks": [
{
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/frontdoors/fd1/frontendendpoints/fd1-azurefd-net"
}
],
"securityPolicyLinks": []
}
}
]
}
}
}
}
Loading