<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by sarav s on Medium]]></title>
        <description><![CDATA[Stories by sarav s on Medium]]></description>
        <link>https://medium.com/@www.saravanaa?source=rss-3fc1f12305e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GzBlp-NQlCIUlVgwWFAANw.jpeg</url>
            <title>Stories by sarav s on Medium</title>
            <link>https://medium.com/@www.saravanaa?source=rss-3fc1f12305e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:40:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@www.saravanaa/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Making Purview Data Quality a Little Less Complicated]]></title>
            <link>https://medium.com/@www.saravanaa/making-purview-data-quality-a-little-less-complicated-575204f9bb5d?source=rss-3fc1f12305e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/575204f9bb5d</guid>
            <category><![CDATA[data-quality-management]]></category>
            <category><![CDATA[microsoft-purview]]></category>
            <category><![CDATA[fabric-lakehouse]]></category>
            <dc:creator><![CDATA[sarav s]]></dc:creator>
            <pubDate>Fri, 18 Sep 2026 05:57:43 GMT</pubDate>
            <atom:updated>2026-09-18T05:57:43.600Z</atom:updated>
            <content:encoded><![CDATA[<p>Data Quality can become complicated very quickly. Once you start dealing with hundreds of tables and thousands of columns, asking data stewards to manually create &amp; maintain DQ rules isn’t really scalable.</p><p>So I wanted to make the process as simple as possible for the people actually configuring the rules.</p><p>The approach I took is metadata-driven and centered around Data Products in Microsoft Purview. This article is solely focused on the Fabric Lakehouse tables in mind.</p><h3>Start with the Data Product</h3><p>Using Purview APIs, the framework retrieves the assets belonging to a Data Product and identifies the Lakehouse tables and their columns.</p><p>That metadata is then used to generate an Excel workbook.</p><p>The workbook becomes the interface for the data steward.</p><p>Instead of writing rules or dealing with APIs, they simply use predefined dropdowns to choose whether a particular DQ rule should be <strong>enabled or not</strong> for a column.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*1QUNSJvk6hd4GRpPyoUGQA.png" /></figure><p>No scripting or API knowledge required.</p><h3>Existing rules are visible too</h3><p>The workbook also reflects the current state.</p><p>If a rule already exists for a column, the corresponding cell is highlighted. The steward can then choose to remove that rule using the dropdown.</p><p>And if they need the rule again later, they simply change the dropdown back.</p><p>The framework takes care of creating or removing the rule through the Purview APIs.</p><p>This makes the workbook more than an input file , it becomes a simple <strong>DQ configuration interface</strong>.</p><h3>Alerts without making the configuration complicated</h3><p>I also wanted alert configuration to be part of the same experience.</p><p>The workbook can have an additional column where the steward can provide the <strong>email IDs of users who should receive alerts</strong>.</p><p>A standard threshold can be used for triggering notifications.</p><p>One important consideration here is that alerts are configured at the <strong>asset level</strong>, not at an individual column/user level.</p><p>So if the workbook contains something like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*1QUNSJvk6hd4GRpPyoUGQA.png" /></figure><p>the framework consolidates those users and configures the alert for the <strong>Customer asset</strong> with all three recipients.</p><p>This is important because the alerting model is common to the asset as a whole.</p><p>The steward can therefore configure the recipients alongside the DQ rules without having to understand how the underlying alerting mechanism works.</p><h3>What about scheduling?</h3><p>Scheduling is deliberately kept separate from the workbook.</p><p>The framework can create and manage the DQ rules, but deciding <strong>when and how frequently the data should be scanned</strong> depends on the individual data product and the team’s requirements.</p><p>That requires a one-time discussion between the data steward/owner and the data team to understand the appropriate schedule and set up recurring scans.</p><p>Once that setup is done, the recurring execution can happen without the steward having to manually trigger the process every time.</p><p>So the responsibilities remain fairly clear:</p><blockquote><strong>Steward:</strong> Decide what should be checked and who should be notified.</blockquote><blockquote><strong>Data team:</strong> Set up the appropriate recurring scan schedule.</blockquote><blockquote><strong>Framework:</strong> Discover metadata, create/remove rules and configure alerts.</blockquote><h3>Why Data Products instead of Domains?</h3><p>The framework can technically work with assets added directly to a domain as well.</p><p>But there is a practical problem.</p><p>At the domain level, there could be a very large number of assets for a steward to go through. That makes the configuration experience tedious. Whereas data products provide a much more focused boundary.</p><p>Instead of asking:</p><blockquote>“Which of these hundreds of assets in the domain need DQ?”</blockquote><p>we can ask:</p><blockquote>“What quality rules should be applied to the assets in this Data Product?”</blockquote><p>That’s why I chose Data Products as the configuration boundary for this implementation.</p><h3>Keeping the changes traceable</h3><p>There was one more problem to solve.</p><p>Excel is great for making the configuration user-friendly, but it isn’t ideal for tracking exactly what changed when the file is committed to a repository.</p><p>We wanted the configuration to follow a proper DevOps workflow with version control, PRs and review.</p><p>So the workbook is converted into <strong>JSON</strong> before being stored in the DevOps repository.</p><p>This gives us a much cleaner representation of the configuration changes.</p><p>The overall flow becomes:</p><p><strong>Purview APIs</strong><br>↓<br><strong>Data Product → Tables → Columns</strong><br>↓<br><strong>Generate Excel workbook</strong><br>↓<br><strong>Steward selects rules &amp; alert recipients</strong><br>↓<br><strong>Excel → JSON</strong><br>↓<br><strong>DevOps Repository</strong><br>↓<br><strong>PR &amp; Review</strong><br>↓<br><strong>Pipeline triggered after PR completion</strong><br>↓<br><strong>Purview APIs create/remove DQ rules &amp; configure alerts</strong></p><p>Now we have a simple interface for the user, while still getting proper change tracking behind the scenes.</p><h3>End goal</h3><p>The idea wasn’t to build another complicated DQ tool. It was to make the process easier to configure and maintain.</p><p>The steward doesn’t need to know how the rules are created, how the APIs work, or how the configuration gets deployed.</p><p>They just need to decide: <strong>Should this rule apply to this column?</strong></p><p>And, if required: <strong>Who should be notified?</strong></p><p>Everything else is automated.</p><p>The principle is quite simple:</p><blockquote>Use Purview to discover the data.<br>Use the workbook to capture human decisions.<br>Use DevOps to track those decisions.<br>Use APIs and pipelines to automate the execution.</blockquote><p>That gives us a Data Quality framework that is user-friendly, maintainable and traceable, without trying to automate the decisions that actually require business context.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=575204f9bb5d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoupling Notebook Secret Access from User Identity in Microsoft Fabric]]></title>
            <link>https://medium.com/@www.saravanaa/decoupling-notebook-secret-access-from-user-identity-in-microsoft-fabric-15e1c46ed14d?source=rss-3fc1f12305e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/15e1c46ed14d</guid>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[azure-key-vault]]></category>
            <dc:creator><![CDATA[sarav s]]></dc:creator>
            <pubDate>Fri, 17 Jul 2026 10:50:52 GMT</pubDate>
            <atom:updated>2026-07-17T10:52:43.960Z</atom:updated>
            <content:encoded><![CDATA[<p>Notebooks in Microsoft Fabric are typically triggered manually by whoever’s active in the workspace at the time , which means any secret retrieval inside that notebook defaults to running under that individual’s identity, requiring every user to hold direct Key Vault permissions. That’s difficult to govern at scale, and it erases any clean separation between “who clicked Run” and “what actually accessed the secret.”</p><p>Back in mid-2025, when we first ran into this problem, Workspace Identity wasn’t yet reliable enough across our different pipelines to solve it cleanly. So our workaround at the time was routing everything through an external Airflow orchestrator just to get a consistent, non-user-bound identity for secret access.</p><p>Recently, while working through a task with the same underlying need, I came across the newer Service Principal (SPN) connection option for the Notebook activity and realized it solved the exact problem we’d previously needed Airflow to work around. This post walks through how to decouple notebook execution from the triggering user’s identity by binding a Fabric pipeline’s Notebook activity to a dedicated SPN connection, so that Key Vault secret retrieval is consistently attributed to the SPN regardless of who triggers the run or when it’s scheduled.</p><p>Step 1: Create the Service Principal &amp; store the SPN’s Secret in Key Vault</p><p>Step 2: Grant the SPN Access to the Key Vault as <strong>Key Vault Secrets User</strong>.</p><p>Step 3: Enable Tenant Setting for SPN API Access in Fabric</p><ul><li>Fabric → Settings (gear icon) → Admin portal → <strong>Tenant settings</strong>.</li><li>Find the developer setting that allows service principals to call Fabric APIs.</li><li>Enable it and add the SPN (or its security group) to the allowed list.</li></ul><p>Step 4: Grant the SPN Access to the Fabric Workspace</p><ul><li>Open the target workspace → <strong>Manage access</strong>.</li><li>Add the SPN as <strong>Member</strong> or <strong>Contributor</strong>.</li></ul><p>Step 5: Create an SPN-Based Notebook Connection</p><ul><li>Fabric → Settings (gear icon) → <strong>Manage connections and gateways</strong>.</li><li>New → New connection.</li><li>Select the <strong>Cloud</strong> tab.</li><li>Connection type: <strong>Notebook</strong>.</li></ul><p>Fill in:</p><ul><li>Connection name (e.g. SPN-Notebook-Conn)</li><li>Authentication method: <strong>Service Principal</strong></li><li>Tenant ID, Client ID, Client Secret (from Step 1)</li><li>Create.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*0DZqjaGNzEV0CemfZOPGng.png" /></figure><p>Step 6: Build the Pipeline</p><ul><li>Workspace → New item → <strong>Data Pipeline</strong>.</li><li>Activities ribbon → add a <strong>Notebook</strong> activity.</li><li>Select the activity → <strong>Settings</strong> tab:</li><li>Notebook: choose your target notebook</li><li>Connection: select the SPN connection created in Step 5</li><li>Save the pipeline.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*TChAvb0meVRGdrhx1pE1ow.png" /></figure><p>Step 7: Notebook Code to Fetch the Secret</p><pre># Fetch the secret authenticates as whatever identity the notebook is running under<br>VAULT_URL = &quot;https://&lt;your-vault-name&gt;.vault.azure.net/&quot;<br>SECRET_NAME = &quot;spn-client-secret&quot;<br>secret_value = notebookutils.credentials.getSecret(VAULT_URL, SECRET_NAME)<br>print(&quot;Secret retrieved:&quot;, secret_value) # prints [REDACTED] # expected<br>print(&quot;Length:&quot;, len(secret_value) if secret_value else &quot;EMPTY/NONE&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*yWJvZNBJxHeW7z2rq913Mw.png" /><figcaption>Output for code snippet</figcaption></figure><p>Step 8: Run and Validate</p><p>· Open the pipeline → click <strong>Run</strong>.</p><p>· Pipeline canvas → <strong>Output</strong> tab → click into the Notebook activity’s run to view cell output.</p><p>· Check in Fabric monitor to validate if the notebook is triggered by the SPN</p><p>With this setup in place, the notebook can be run by anyone with pipeline access, but the actual Key Vault call always authenticates as the SPN , never the individual user. This keeps secret access centralized, auditable, and independent of team turnover, and sets up a clean foundation for extending the same SPN identity to downstream operations that also need consistent, non-user-bound attribution.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15e1c46ed14d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Purview:Quick asset discovery with hierarchical tags]]></title>
            <link>https://medium.com/@www.saravanaa/microsoft-purview-quick-asset-discovery-with-hierarchical-tags-935118bf2502?source=rss-3fc1f12305e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/935118bf2502</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[azure-purview]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[microsoft-purview]]></category>
            <dc:creator><![CDATA[sarav s]]></dc:creator>
            <pubDate>Thu, 07 May 2026 10:06:50 GMT</pubDate>
            <atom:updated>2026-05-07T10:25:15.063Z</atom:updated>
            <content:encoded><![CDATA[<p>I wanted to address one of the quiet pain points in enterprise data governance(solely focussed on fabric) with respect to the asset discovery , specifically when you’re running a medallion architecture in Microsoft Fabric.</p><p>When a business user searches for “sales_orders” in Purview, users would get three results back from <em>Bronze, silver, and gold</em>. Same source system, near-identical names, no obvious signal for which one they should actually choose . They either guess, ask someone, or give up on Purview entirely.</p><p>But that’s just the medallion problem in isolation. The deeper issue is that Purview is tenant-wide. A single catalog spans your <em>dev, test, and prod</em> environments alongside every medallion layer within each of them. So in practice, a business user searching for “sales_orders” isn’t seeing three results , they’re seeing nine or more. The same table name repeated across bronze, silver, and gold across dev, test, and prod, all sitting flat in search results with nothing to distinguish them at a glance. For someone who just wants the right one to choose, navigating that catalog is genuinely a nightmare.</p><p>That’s when I had come up with this python script(link below) that runs against the Purview API and applies structured, searchable tags to every asset which derived entirely from where that asset lives in the collection hierarchy in the data map.</p><h4><em>How it works:</em></h4><p>For this to work, the collection structure should be well structured &amp; with a meaningful naming standard.</p><p>For example : The collection structure in our environment follows a clear convention which I will be referencing in the following sections:</p><p><strong>fabric → daas-dev → client-bronze</strong></p><p><strong>fabric → daas-prod → client-silver</strong></p><p>The automation recursively traverses this tree using the Purview Collections API, and for every asset it finds, generates four Tags:</p><ul><li><strong>daas-dev</strong> : the environment the asset lives in</li><li><strong>client</strong> : the domain it belongs to</li><li><strong>bronze </strong>: the medallion layer</li><li><strong>daas-dev-client-bronze</strong> : a ‘<em>super tag’</em> combining all three, for pinpoint filtering</li></ul><p>These tags are applied via the Purview Atlas API with a merge strategy . Existing tags if any that are either system generated or manually tagged are never touched.</p><h4><em>Why tags and not something else:</em></h4><p>Tags in Purview are natively filterable in the search interface. A business user doesn’t need to understand collection paths, qualified names, or schema conventions.</p><p>They type <em>gold</em> in the label filter and immediately scope to curated, production ready assets only.</p><p>They type <em>daas-prod</em> and the dev and test noise disappears entirely.</p><p>The super tag gives them exact precision when they need it ,that is one filter, one environment, one domain, one layer.</p><p>This is what makes the approach practical in a tenant-wide catalog .The environment and layer information already exists in your collection structure. It just wasn’t surfaced anywhere a business user could act on it without knowing how Purview’s collection hierarchy works internally.</p><h4><strong>What the automation handles:</strong></h4><ul><li>Recursive collection traversal from any configurable root</li><li>Offset-based pagination for asset retrieval (the only pagination mode Purview’s search API reliably supports which I utilized from my previous works)</li><li>Exponential back-off and rate-limit handling for enterprise-scale catalogs</li><li>Two runtime flags:</li></ul><ol><li>SKIP_PARENT_COLLECTIONS : flag to disable labelling assets from leaf collections</li><li>INCLUDE_ROOT_IN_LABEL : optionally prepend the root name to the super tag(incase you want to avoid having a lengthy tags)</li></ol><ul><li>Full logging of every traversal, label decision, and API outcome</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*6fARKO7p0Quo49PlhCPYQA.png" /><figcaption><em>Tags applied based on collection hierarchy</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*RYZgqaD61djXZj8wyo2tZA.png" /><figcaption><em>Search results using super tags</em></figcaption></figure><h4><em>How a user would interpret which tag to search:</em></h4><p>Tags only solve half the problem. The other half is making sure business users know which label to reach for in the first place.</p><p>During your Purview adoption handover, put together a simple reference table that is hosted in Confluence or SharePoint, wherever your teams already live . It should map each label to plain English. What environment it represents, what domain it covers, what data sources that collection actually holds, and what quality tier the data is at. One row per label, written the way a business analyst would read it, not the way an engineer would define it.</p><p>This doesn’t need to be elaborate. A single page that a user can open alongside Purview when they’re searching for the first time is enough to build confidence. Over time they’ll internalise the pattern and stop needing it ,but having it available during those first few weeks of adoption significantly reduces the friction of people going back to asking colleagues instead of using the catalog.</p><p>It also gives the governance team a living document to update as new collections and domains are onboarded, keeping the reference honest as the catalog grows.</p><p><strong>The broader point:</strong></p><p>The catalog noise problem compounds quickly in any real enterprise setup with multiple environments, multiple domains, multiple layers, all tenant-wide and all searchable together by default. Structured tags built from the collection hierarchy give business users a simple, consistent vocabulary to filter by. The automation keeps that vocabulary accurate without any manual tagging effort as the catalog evolves.</p><p>Source code :</p><p><a href="https://github.com/sarav13/purview-utils/tree/e93b825e4656f46e3e025606ac0767bdb2e247c9/hierarchy_based_asset_tagging">purview-utils/hierarchy_based_asset_tagging at e93b825e4656f46e3e025606ac0767bdb2e247c9 · sarav13/purview-utils</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=935118bf2502" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Streamlining Purview: Automated Asset Lifecycle for Fabric]]></title>
            <link>https://medium.com/@www.saravanaa/streamlining-purview-automated-asset-lifecycle-for-fabric-adfb6df4e1dd?source=rss-3fc1f12305e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/adfb6df4e1dd</guid>
            <category><![CDATA[microsoft-purview]]></category>
            <category><![CDATA[microsoft-fabric]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[azure-purview]]></category>
            <dc:creator><![CDATA[sarav s]]></dc:creator>
            <pubDate>Wed, 22 Apr 2026 07:45:40 GMT</pubDate>
            <atom:updated>2026-04-22T07:47:17.776Z</atom:updated>
            <content:encoded><![CDATA[<p>Writing my first article on the work I have done . Hope it is first of many . I’ve written all this from problems point of view that I faced in achieving the same.</p><p><strong><em>The Problem</em></strong></p><p>Microsoft Purview scans Fabric workspaces and registers every Lakehouse, Notebook, Table, and View as a catalogued asset. But there’s a gap: when you delete something in Fabric, Purview doesn’t know about it. There’s no auto-delete or soft-delete mechanism. The stale asset sits in your catalog indefinitely, polluting your governance layer with orphaned entries that no longer exist in reality. At scale, your catalog loses its trustworthiness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*LeLuB7eYwYqxOJSO8YMW2Q.png" /><figcaption>Current purview limitations as of published date</figcaption></figure><p><a href="https://learn.microsoft.com/en-us/purview/data-map-scan-ingestion#detecting-deleted-files">Scans and ingestion in Microsoft Purview Data Map</a></p><blockquote><strong>What Does “Orphaned” Actually Mean Here?</strong></blockquote><p>“no owner assigned” or “no classification” are governance quality signals, not deletion signals. In the Fabric + Purview context an orphan means exactly one thing: <strong>an asset that exists in Purview but no longer exists in Fabric.</strong> The only reliable way to detect this is to go back to the source and ask “does this still exist?” And thats what I have done here.</p><h3>Architecture</h3><p>When Purview scans a Fabric workspace it drills down and registers every item individually. Each Lakehouse has a SQL Endpoint in a one-to-one relationship, and Purview discovers tables and views by scanning through it. So when a table is dropped in Fabric it disappears from the SQL Endpoint immediately-but the Purview asset has no way of knowing that.</p><p>This means two validation paths are needed depending on asset type</p><ul><li>The <strong>Fabric REST API</strong> for workspace-level items like Lakehouses</li><li>The <strong>SQL Endpoint</strong> via INFORMATION_SCHEMA.TABLES for tables and views. (The Fabric Items API has no visibility into tables inside a Lakehouse, so SQL is the only reliable ground truth at that level)</li></ul><blockquote><strong>Cracking the Qualified Name</strong></blockquote><p>Every Purview asset has a qualifiedName -an URL encoding what the asset is and where it lives. For some strange reason purview stores Fabric qualified names with <strong>double percent-encoding</strong>, so a table dbo/analytics_summary gets stored as dbo%252Fanalytics_summary. Decoding once gives %2F, decoding again gives /. Miss this and your parser produces garbage.</p><p>Once decoded, the URL path tells you everything like workspace ID, lakehouse ID, schema, and table name. Different asset types have distinct patterns letting the tool classify and route each asset correctly.</p><ul><li>Lakehouses -/lakehouses/</li><li>Notebooks /synapsenotebooks/</li><li>SQL Endpoints/lakewarehouses/</li><li>Tables/lakehouses/{id}/tables/{schema}/{name}</li></ul><blockquote><strong>Validation Logic</strong></blockquote><p>For a <strong>Lakehouse</strong>, the Fabric API is called directly.</p><ul><li>404 means deleted - orphan</li><li>403 means the Service Principal has no access (here treated as existing to avoid false deletions)</li></ul><p>For a <strong>table</strong>, the parent Lakehouse is checked first. If the Lakehouse is gone, every table under it is immediately flagged without touching SQL. If the Lakehouse exists, the tool checks whether the (schema, table) pair is present in INFORMATION_SCHEMA. Present means clean, absent means orphan.</p><p>The SQL endpoint hostname isn’t stored in Purview- it’s fetched from the Fabric API via properties.sqlEndpointProperties.connectionString and cached per Lakehouse. The database name for the connection is the Lakehouse display name, not its GUID.</p><blockquote><strong>Connecting to the SQL Endpoint</strong></blockquote><p>Two authentication options are supported.</p><ul><li>Username and password works as long as the account has MFA disabled — a service account fits this.</li><li>The alternative is AAD token authentication via a Service Principal using MSAL, which is preferable in pipeline contexts since it reuses the same SP already configured for Purview and Fabric. Once connected, INFORMATION_SCHEMA.TABLES results are cached per Lakehouse so every table check within the same Lakehouse is an in-memory set lookup - no repeated SQL calls.</li></ul><blockquote><strong>Safety and Output</strong></blockquote><p>The tool defaults to <strong>dry-run mode . </strong>All validation runs but nothing is deleted. Two CSVs are written before any deletion: a full audit of every asset and an orphans-only report for review. Live deletion requires explicitly flipping the dry-run flag and typing a confirmation prompt. AAD tokens are refreshed automatically every 4000 deletions to handle long-running jobs.</p><h3>Closing Thought</h3><p>Data catalog trustworthiness isn’t just about scanning more . It’s about knowing when to remove what no longer exists. Purview handles ingestion well. The gap is lifecycle management. Until native support lands, the SQL Endpoint is your source of truth, and cross-referencing it programmatically is the most reliable path to a clean catalog.</p><p>Source code:</p><p><a href="https://github.com/sarav13/purview-utils/tree/d8e2d90d4871e1e97dd568449af59b806e1e5224/stale_fabric_asset_cleanup_purview">purview-utils/stale_fabric_asset_cleanup_purview at d8e2d90d4871e1e97dd568449af59b806e1e5224 · sarav13/purview-utils</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adfb6df4e1dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>