你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzPurviewCustomClassificationRuleObject
为 CustomClassificationRule 创建内存中对象。
语法
New-AzPurviewCustomClassificationRuleObject
-Kind <ClassificationRuleType>
[-ClassificationName <String>]
[-ColumnPattern <IClassificationRulePattern[]>]
[-DataPattern <IClassificationRulePattern[]>]
[-Description <String>]
[-MinimumPercentageMatch <Double>]
[-RuleStatus <ClassificationRuleStatus>]
[<CommonParameters>]
说明
为 CustomClassificationRule 创建内存中对象。
示例
示例 1:创建自定义分类规则对象
$reg1 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col1$'
$reg2 = New-AzPurviewRegexClassificationRulePatternObject -Pattern '^col2$'
$regexarr = @($reg1, $reg2)
New-AzPurviewCustomClassificationRuleObject -Kind 'Custom' -ClassificationName ClassificationRule4 -MinimumPercentageMatch 60 -RuleStatus 'Enabled' -Description 'This is a rule2' -ColumnPattern $regexarr
ClassificationAction :
ClassificationName : ClassificationRule4
ColumnPattern : {{
"kind": "Regex",
"pattern": "^col1$"
}, {
"kind": "Regex",
"pattern": "^col2$"
}}
CreatedAt :
DataPattern :
Description : This is a rule2
Id :
Kind : Custom
LastModifiedAt :
MinimumPercentageMatch : 60
Name :
RuleStatus : Enabled
Version :
创建自定义分类规则对象
参数
-ClassificationName
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ColumnPattern
-DataPattern
-Description
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Kind
-MinimumPercentageMatch
类型: | Double |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-RuleStatus
输出
CustomClassificationRule