你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzFrontDoorCdnProfileScrubbingRulesObject
为 ProfileScrubbingRules 创建内存中对象。
语法
New-AzFrontDoorCdnProfileScrubbingRulesObject
-MatchVariable <ScrubbingRuleEntryMatchVariable>
[-Selector <String>]
[-State <ScrubbingRuleEntryState>]
[<CommonParameters>]
说明
为 ProfileScrubbingRules 创建内存中对象。
示例
示例 1:为 ProfileScrubbingRules 创建内存中对象,matchVariable 的值为 RequestIPAddress
New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestIPAddress -State Enabled
MatchVariable Selector SelectorMatchOperator State
------------- -------- --------------------- -----
RequestIPAddress EqualsAny Enabled
为 ProfileScrubbingRules 创建内存中对象,matchVariable 的值为 RequestIPAddress
示例 2:为 ProfileScrubbingRules 创建内存中对象并取消清理规则
New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestUri -State Disabled
MatchVariable Selector SelectorMatchOperator State
------------- -------- --------------------- -----
RequestUri EqualsAny Disabled
为 ProfileScrubbingRules 创建内存中对象并解除清理规则
参数
-MatchVariable
要从日志中清理的变量。
Type: | ScrubbingRuleEntryMatchVariable |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Selector
matchVariable 是集合时,运算符用于指定此规则应用于的集合中的哪些元素。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-State
定义日志清理规则的状态。 默认值处于启用状态。
Type: | ScrubbingRuleEntryState |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |