-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[Hub Generated] Review request for Microsoft.Network to add version stable/2022-05-01 #19091
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
Merged
weidongxu-microsoft
merged 30 commits into
Azure:main
from
jielichen:dev-frontdoor-Microsoft.Network-2022-05-01-WAFPatch
Jun 16, 2022
Merged
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 513aff1
Updates readme
jielichen f045164
Updates API version in new specs and examples
jielichen c146fb4
Add frontdoor waf Patch version 2022-05-01
jielichen 9c37719
Adds suppression to readme
jielichen e9fe792
Adds suppression to readme
jielichen 43db15f
Fix format errors
jielichen 9cedceb
Merge branch 'dev-frontdoor-Microsoft.Network-2022-05-01-WAFPatch' of…
jielichen 6b606bc
Fix validation issues
jielichen ddb8af2
Fix ModelValidation error
jielichen 20b5cbc
fix valiation errors
jielichen 351816b
Adds suppression to readme
jielichen 1f7dd59
Fix valiation error
jielichen 71dbf99
Merge branch 'dev-frontdoor-Microsoft.Network-2022-05-01-WAFPatch' of…
jielichen 4954ead
Fix lintdiff error
jielichen 20ca617
Fix lintdiff error
jielichen 9a21265
Fix lintdiff error
jielichen 351e714
Fix code format
jielichen b21f152
Fix DefaultErrorResponseSchema lintDiff
jielichen 2d9fbdd
Fix PrettierCheck error
jielichen 6ba2acf
Change ErrorResponse schema
jielichen 6fd6934
Update network.json
jielichen 490b813
Adds suppression to readme
jielichen ef1220f
Adds suppression to readme
jielichen 6a31405
Adds suppression to readme
jielichen 6dd9f9a
Adds suppression to readme
jielichen f892207
Adds suppression to readme
jielichen 7f5bcb5
Adds suppression to readme
jielichen 7c1f58a
Adds suppression to readme
jielichen fc81fac
suppress LintDiff
jielichen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
...resource-manager/Microsoft.Network/stable/2022-05-01/examples/WafListManagedRuleSets.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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": { | ||
| "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" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } | ||
134 changes: 134 additions & 0 deletions
134
...ntdoor/resource-manager/Microsoft.Network/stable/2022-05-01/examples/WafListPolicies.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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": [] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test2