Define a Data Quality Rule and Scan
A 3-step recipe with Microsoft Purview. We can help you get access.
Recipe · 3 steps
Define a Data Quality Rule and Scan
with Microsoft Purview · Data Quality Management
Create a data quality rule and run a scan that evaluates it.
- Create the data quality rule targeting the asset.
- Read the rule back by its identifier to confirm it was stored.
- Run a data quality scan that evaluates the rule against the asset.
What you'll need to have ready
- authorization: The OAuth2 bearer token value, e.g. "Bearer eyJ0...".
- apiVersion: The Data Quality API version.
- ruleName: The name for the new data quality rule.
- ruleType: The rule type (Completeness, Uniqueness, Freshness, Accuracy, Consistency, or Validity).
- expression: The rule expression evaluated against the asset.
- severity: The rule severity (Low, Medium, High, or Critical).
- assetId: The data asset identifier the rule targets and the scan evaluates.
For your developer
Arazzo workflow microsoft-purview:define-rule-and-scan-quality, 3 operations: createDataQualityRule → getDataQualityRule → runDataQualityScan. Specs on APIs.io.