你当前正在访问 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
要从日志中清理的变量。
类型: | ScrubbingRuleEntryMatchVariable |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Selector
matchVariable 是集合时,运算符用于指定此规则应用于的集合中的哪些元素。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-State
定义日志清理规则的状态。 默认值处于启用状态。
类型: | ScrubbingRuleEntryState |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |