你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzFrontDoorCdnProfileLogScrubbingObject
为 ProfileLogScrubbing 创建内存中对象。
语法
New-AzFrontDoorCdnProfileLogScrubbingObject
[-ScrubbingRule <IProfileScrubbingRules[]>]
[-State <ProfileScrubbingState>]
[<CommonParameters>]
说明
为 ProfileLogScrubbing 创建内存中对象。
示例
示例 1:为两个 LogScrubbingRules 创建 ProfileUpgradeParameters 的内存中对象
$scrubbingRule1 = New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestIPAddress -State Enabled
$scrubbingRule2 = New-AzFrontDoorCdnProfileScrubbingRulesObject -MatchVariable RequestUri -State Enabled
New-AzFrontDoorCdnProfileLogScrubbingObject -ScrubbingRule @($scrubbingRule1, $scrubbingRule2) -State Enabled
State
-----
Enabled
为两个 LogScrubbingRules 创建 ProfileUpgradeParameters 的内存中对象
参数
-ScrubbingRule
应用于 Azure Front Door 配置文件日志的日志清理规则列表。 若要构造,请参阅 SCRUBBINGRULE 属性的 NOTES 部分并创建哈希表。
类型: | IProfileScrubbingRules[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-State
日志清理配置的状态。默认值为“已启用”。
类型: | ProfileScrubbingState |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |