fix: Enhance Purview scan reliability with collection hierarchy fallback and reparenting logic#139
Merged
Roopan-Microsoft merged 2 commits intomicrosoft:devfrom Apr 23, 2026
Conversation
…tion and reparenting logic
…oyment collections
Roopan-Microsoft
approved these changes
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request improves the robustness and user guidance for Purview scan automation, particularly around collection hierarchy requirements. The main changes ensure that scans are always created under the correct collection, automatically handling collection reparenting when necessary, and provide clear documentation and error handling for users.
Enhancements to Purview scan automation and documentation:
Automation logic improvements:
trigger_purview_scan_for_fabric_workspace.ps1to automatically detect if the deployment collection is not under the datasource's collection and attempt to reparent it as a child, falling back to the datasource's collection if reparenting fails. This preventsScan_CollectionOutOfBounderrors and ensures compliance with Purview's collection hierarchy requirements.User guidance and documentation:
docs/post_deployment_steps.mdexplaining that if a tenant-level Fabric datasource already exists under a different collection, the scan script will automatically reparent the deployment collection as needed, and that the deployment collection may appear nested under the datasource's collection in the Purview portal.docs/post_deployment_steps.mdto describe the new automatic reparenting behavior forScan_CollectionOutOfBounderrors, and provided instructions for manual intervention if automatic reparenting fails.Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information