New-AzFrontDoorWafCustomRuleObject
Create CustomRule Object for WAF policy creation
Syntax
New-AzFrontDoorWafCustomRuleObject
-Name <String>
-RuleType <String>
-MatchCondition <PSMatchCondition[]>
-Action <String>
-Priority <Int32>
[-RateLimitDurationInMinutes <Int32>]
[-RateLimitThreshold <Int32>]
[-EnabledState <String>]
[-CustomRule <PSFrontDoorWafCustomRuleGroupByVariable[]>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Create CustomRule Object for WAF policy creation
Examples
Example 1
New-AzFrontDoorWafCustomRuleObject -Name "Rule1" -RuleType MatchRule -MatchCondition $matchCondition1 -Action Block -Priority 2
Name RuleType Action Priority RateLimitDurationInMinutes
---- -------- ------ -------- --------------------------
Rule1 MatchRule Block 2 1
Create a CustomRule Object
Parameters
-Action
Type of Actions. Possible values include: 'Allow', 'Block', 'Log'
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CustomRule
Gets or sets describes the list of variables to group the rate limit
Type: | PSFrontDoorWafCustomRuleGroupByVariable[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnabledState
Enabled State. Possible values include: 'Enabled', 'Disabled'.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MatchCondition
List of match conditions.
Type: | PSMatchCondition[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Name of the rule
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Priority
Describes priority of the rule.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RateLimitDurationInMinutes
Rate limit duration. Default - 1 minute
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RateLimitThreshold
Rate limit threshold
Type: | Nullable<T>[Int32] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RuleType
Type of the rule. Possible values include: 'MatchRule', 'RateLimitRule'
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
Related Links
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure PowerShell