Get-AzPurviewClassificationRule
Get a classification rule
Syntax
Get-AzPurviewClassificationRule
-Endpoint <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzPurviewClassificationRule
-Endpoint <String>
-Name <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Get a classification rule
Examples
Example 1: Get custom classification rule by name
Get-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com/ -Name ClassificationRule1
ClassificationAction : Keep
ClassificationName : ClassificationName1
ColumnPattern : {{
"kind": "Regex",
"pattern": "column1"
}}
CreatedAt : 1/27/2022 4:36:25 AM
DataPattern : {{
"kind": "Regex",
"pattern": "^\\d{5}$"
}}
Description : This is a description
Id : classificationrules/ClassificationRule1
Kind : Custom
LastModifiedAt : 1/27/2022 4:36:25 AM
MinimumPercentageMatch : 60
Name : ClassificationRule1
RuleStatus : Enabled
Version : 1
Get classification rule named Classification1
Example 2: Get all custom classification rules
Get-AzPurviewClassificationRule -Endpoint https://parv-brs-2.purview.azure.com/
ClassificationAction : Keep
ClassificationName : ClassificationName1
ColumnPattern : {{
"kind": "Regex",
"pattern": "column1"
}}
CreatedAt : 1/27/2022 4:36:25 AM
DataPattern : {{
"kind": "Regex",
"pattern": "^\\d{5}$"
}}
Description : This is a description
Id : classificationrules/ClassificationRule1
Kind : Custom
LastModifiedAt : 1/27/2022 4:36:25 AM
MinimumPercentageMatch : 60
Name : ClassificationRule1
RuleStatus : Enabled
Version : 1
ClassificationAction : Keep
ClassificationName : ClassificationName2
ColumnPattern : {{
"kind": "Regex",
"pattern": "column2"
}}
CreatedAt : 1/27/2022 4:37:09 AM
DataPattern : {{
"kind": "Regex",
"pattern": "^\\d{6}$"
}}
Description : This is description
Id : classificationrules/ClassificationRule2
Kind : Custom
LastModifiedAt : 1/27/2022 4:37:09 AM
MinimumPercentageMatch : 60
Name : ClassificationRule2
RuleStatus : Enabled
Version : 1
Get all custom classification rules
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Endpoint
The scanning endpoint of your purview account. Example: https://{accountName}.purview.azure.com
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
.
Type: | String |
Aliases: | ClassificationRuleName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell