你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzPurviewCustomClassificationRuleObject
Create an in-memory object for CustomClassificationRule.
Syntax
New-AzPurviewCustomClassificationRuleObject
-Kind <ClassificationRuleType>
[-ClassificationName <String>]
[-ColumnPattern <IClassificationRulePattern[]>]
[-DataPattern <IClassificationRulePattern[]>]
[-Description <String>]
[-MinimumPercentageMatch <Double>]
[-RuleStatus <ClassificationRuleStatus>]
[<CommonParameters>]
Description
Create an in-memory object for CustomClassificationRule.
Examples
Example 1: Create custom classification rule object
$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 :
Create custom classification rule object
Parameters
-ClassificationName
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ColumnPattern
Type: | IClassificationRulePattern[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DataPattern
Type: | IClassificationRulePattern[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Kind
Type: | ClassificationRuleType |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MinimumPercentageMatch
Type: | Double |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RuleStatus
Type: | ClassificationRuleStatus |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
CustomClassificationRule