capabilities.work

Provision a Custom Scan Ruleset

A 3-step recipe with Microsoft Purview. We can help you get access.

Recipe · 3 steps

Provision a Custom Scan Ruleset

with Microsoft Purview · Data Governance Management

Create a custom classification rule and a scan ruleset that uses it.

  1. Create a custom classification rule with a regex data pattern.
  2. Create a scan ruleset that includes the new custom classification rule.
  3. Read the scan ruleset back to confirm it references the custom rule.
What you'll need to have ready
  • authorization: The OAuth2 bearer token value, e.g. "Bearer eyJ0...".
  • apiVersion: The Scanning API version.
  • classificationRuleName: The name of the custom classification rule to create.
  • classificationName: The classification the rule applies when it matches.
  • dataPattern: The regex pattern the classification rule matches on.
  • scanRulesetName: The name of the scan ruleset to create.
  • scanRulesetKind: The scan ruleset kind, matching the data source family, e.g. "AzureSqlDatabase".
For your developer

Arazzo workflow microsoft-purview:provision-scan-ruleset, 3 operations: createOrReplaceClassificationRule → createOrReplaceScanRuleset → getScanRuleset. Specs on APIs.io.