🎉 75% of content is free forever — Unlock Premium from $10/mo →
CW
NEWSLIVESearch All Content
đŸ’ŧ Servicesâ„šī¸ Aboutâœ‰ī¸ ContactView Pricing Plansfrom $10

Purview Data Catalog: Collections, Scans, Glossary

Azure Data EngineeringData Catalog⭐ Premium

A data catalog fails for one predictable reason: nobody trusts what is in it. Assets appear with stale descriptions, sensitive columns are unlabelled, and analysts stop looking after the second wrong result. Building a useful catalog in Microsoft Purview is less about running a scanner and more about designing ownership, cadence, and vocabulary so that the metadata keeps up with the data.

By the end of this lesson you will be able to:

  • Structure collections so each domain has a clear owner.
  • Configure scans that run unattended and only where they are needed.
  • Combine built-in classification with custom rules for domain-specific values.
  • Run a glossary that stays current without a standing committee.

Prerequisites

  • !An existing ADLS Gen2 or Synapse estate
  • !Azure RBAC basics
  • !Basic Python with azure-identity

Why people stop searching the catalog

The first month of a Purview deployment is usually enthusiastic. Scans are enabled across every storage account, and hundreds of assets appear. Within a quarter, search returns four versions of a column called amt, half the assets have no owner, and the one description that exists is a copy of the table name. Users conclude the catalog is decoration and go back to asking in chat.

Two design mistakes cause this. The first is scanning everything at the same cadence with no ownership model, which produces a flood of metadata nobody curates. The second is treating classification as a one-time event when schemas and source systems change monthly. Both are organizational problems that surface as technical ones.

The cure is deliberate structure: fewer collections with named stewards, scan schedules matched to how fast each source actually changes, and a glossary small enough to maintain. A catalog with two hundred well-owned terms beats one with four thousand abandoned ones.

Collections, sources, and ownership boundaries

A Purview collection is the unit of ownership. Everything inside it inherits a scanning scope and, in practice, a team. Create collections along the lines your organization already reports through rather than along Azure resource boundaries, because a sales domain that spans ADLS, Synapse, and Dataverse should live in one place.

python
from azure.purview.datamap import PurviewDataMapClient
from azure.identity import DefaultAzureCredential

credential = DefaultAzureCredential()
client = PurviewDataMapClient(credential=credential, account_name="purview-prod")

client.collection.create_collection(
    collection={
        "name": "SalesDomain",
        "parentCollectionName": "Root",
        "description": "Sales facts, customer dimension, and CRM extracts",
    }
)

client.collection.create_collection(
    collection={
        "name": "FinanceDomain",
        "parentCollectionName": "Root",
        "description": "GL postings, billing snapshots, and revenue reports",
    }
)

Keep the hierarchy shallow. Two or three levels are usually enough; deeper trees make it hard for a new steward to know where a new asset belongs, which is exactly how ad hoc containers appear at the root.

The Purview managed identity is what actually reads your metadata, so grant it the narrowest role that works. For ADLS Gen2 that usually means Storage Blob Data Reader on the specific containers in scope plus a role that allows enumeration. Where storage sits behind a private endpoint, enable managed identity authentication and firewall rules on the scan so the catalog keeps working without opening a public path just for metadata collection. This detail is worth getting right early, because a scan that fails silently at 02:00 produces an empty catalog and no alert.

Scanning on a schedule that matches reality

A scan is a connector, a ruleset, and a schedule. Choose the ruleset deliberately: the system ruleset for ADLS Gen2 will recognize common formats, while a custom ruleset lets you add patterns such as internal account codes or SKU strings that Microsoft cannot know about.

python
scan = client.scan.create_scan(
    scan_name="adls-sales-daily",
    collection_name="SalesDomain",
    properties={
        "dataSource": {
            "type": "AzureDataLakeStorageGen2",
            "properties": {
                "url": "https://stadls001.dfs.core.windows.net",
                "tenantId": "00000000-0000-0000-0000-000000000000",
            },
        },
        "scanRuleset": {"type": "System", "name": "AzureDataLakeStorageGen2"},
        "schedule": {"frequency": "Daily", "time": "02:00"},
    },
)

client.scan.run_scan(collection_name="SalesDomain", scan_name="adls-sales-daily")

Match cadence to volatility. Landing zones that receive files every hour benefit from a daily scan; a conformed dimension that changes quarterly does not, and scanning it nightly only wastes the purview unit allocation and churns timestamps. Incremental scans, available for several Azure sources, restrict discovery to containers or paths that changed since the last run and are worth enabling on large accounts.

What the scanner knows and what you must teach it

Automated classification reliably recognizes standard patterns such as email addresses, phone numbers, and credit card-like strings. It will not recognize cust_cd as a customer identifier or understand that rev_amt in one table and sales_income in another are the same concept. Those are the values that matter to your business, so you have to supply them.

Combine the two layers. Let the scanner flag generic personal data, then add custom classifiers for domain values and bind them to the ruleset used by the relevant scan. The result is a classification report you can review with the data owner rather than a raw list of files.

Metadata layerProduced byOwnerRefresh cadence
Technical schemaScan of columns and typesPlatform teamDaily or incremental
Standard PII labelsBuilt-in classificationSecurity teamWith each scan
Domain patternsCustom classifiersData stewardsQuarterly review
Business definitionsGlossary termsDomain stewardsOn change, reviewed monthly
Endorsement and metricsUsage, lineage, quality scoreAnalytics leadsContinuous

Glossary terms that survive contact with reality

The glossary is where the catalog earns its keep, because it is the bridge between a finance analyst's language and a table named f_txn_gl_post. A term needs a definition short enough to read in one breath, an owner who will answer questions about it, and links to the assets that implement it.

python
term = client.glossary.create_glossary_term(
    glossary_name="BusinessGlossary",
    glossary_term={
        "name": "Net Revenue",
        "description": "Gross revenue less returns, discounts, and allowances",
        "abbreviation": "NR",
        "termStatus": "Approved",
        "steward": "[email protected]",
        "synonyms": ["Net Sales", "Revenue after returns"],
        "relatedTerms": ["Gross Revenue", "Bookings"],
    },
)

client.term_template.create_term_template(
    term_template={
        "name": "MetricTemplate",
        "displayName": "Certified Metric",
        "attributeDefs": [
            {"name": "owner", "type": "string"},
            {"name": "certified", "type": "boolean"},
        ],
    }
)

Terms without owners rot fastest. Set a review reminder for each approved term, and let the catalog display a stale flag when a definition has not been touched in a year. Staleness made visible is far better than staleness hidden behind a confident-sounding sentence.

Measuring whether anyone uses it

Adoption is the only honest success metric. Track searches per week, the percentage of critical assets with an assigned owner, the share of glossary terms linked to at least one asset, and how often a catalog link appears as the entry point in an incident review. If search volume is flat while the warehouse keeps growing, the catalog is not solving a real problem yet.

Pair those numbers with one qualitative signal: ask new analysts where they looked when they needed a dataset. If the answer is a chat channel, the gap is usually trust rather than discovery. Publish lineage for the two or three most contested metrics, and those conversations tend to move from opinion to evidence very quickly.

Common Mistakes

Scanning every storage account on the same aggressive schedule

Fix: Scope scans to domains, match cadence to change rate, and enable incremental scanning on large accounts.

Leaving glossary terms ownerless after creation

Fix: Assign a named steward and a review date at creation time, and surface terms that have gone stale.

Relying only on built-in classification

Fix: Add custom classifiers for internal identifiers and domain values that Microsoft patterns cannot detect.

Building the catalog before agreeing on names

Fix: Resolve duplicate asset names and synonyms first, otherwise search returns ambiguity instead of answers.

Best Practices

  • Organize collections by business domain so ownership is obvious
  • Review classification results with stewards instead of assuming they are correct
  • Link every glossary term to at least one concrete asset
  • Publish a short monthly note on what changed in the catalog
  • Treat search failures as bug reports and fix the metadata behind them

Questions interviewers ask about cataloging

đŸŽ¯Interview Tip

Be ready to explain how you would onboard an existing estate that already has hundreds of storage accounts. Lead with discovery and prioritization: scan the highest-value domains first, establish ownership there, prove usage, then expand. Unscoped big-bang scans are the classic wrong answer.

Interview Questions

Q1: How does Microsoft Purview differ from a legacy on-premises data catalog?

Purview is cloud-native and scans Azure and hybrid sources automatically, keeping technical metadata current without manual entry. Legacy catalogs typically depend on someone describing assets by hand, so their content decays as soon as the team moves on.

Q2: What is the purpose of linking a glossary term to a data asset?

It lets a non-technical user search in business language and land on the correct table or file. It also supports impact analysis, because changing the definition of Net Revenue immediately reveals which assets and reports are affected.

Q3: How do you decide scanning frequency for a source?

Base it on change rate and downstream criticality. Hourly landing zones get daily scans, slowly changing reference data gets weekly or incremental scans, and anything with a compliance requirement gets scanned on the schedule the control demands.

Q4: How would you measure whether the catalog is working?

Search activity, owner coverage on critical assets, percentage of glossary terms linked to assets, and time-to-answer when someone requests a dataset. Rising coverage with falling support requests is the pattern you want.

Key Takeaways

  • Collections are ownership boundaries, not just folders
  • Scan cadence must follow how fast the source actually changes
  • Built-in classification finds generic PII, custom classifiers find your business meaning
  • A glossary with named stewards and review dates outlasts a giant unowned one
  • Usage metrics, not asset counts, prove the catalog has value
  • Fix ambiguous metadata through the same review process you use for code
🔒

Premium Content

Purview Data Catalog: Collections, Scans, Glossary

You've previewed the first section. Unlock this full lesson and 900+ advanced tutorials with a Premium plan.

đŸŽ¯End-to-end Projects
đŸ’ŧInterview Prep
📜Certificates
🤝Community Access

Already a member? Log in

CW

ChatWhole Learn Editorial Team

Written by experienced data scientists, software engineers, and educators. All content is reviewed by industry professionals to ensure accuracy and relevance.

Last reviewed: 2026-10-13

—
☆☆☆☆☆
0 ratings

Rate & Feedback

Advertisement