New-AzPurviewCustomClassificationRuleObject
建立 CustomClassificationRule 的記憶體內部物件。
語法
New-AzPurviewCustomClassificationRuleObject
-Kind <ClassificationRuleType>
[-ClassificationName <String>]
[-ColumnPattern <IClassificationRulePattern[]>]
[-DataPattern <IClassificationRulePattern[]>]
[-Description <String>]
[-MinimumPercentageMatch <Double>]
[-RuleStatus <ClassificationRuleStatus>]
[<CommonParameters>]
Description
建立 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