Hello Suranga Kasturi,
Welcome to the MS Q&A platform.
To exclude certain assets during scanning, you can define regular expressions (regex) in the Ignore patterns. During scanning, Microsoft Purview will compare the asset's URL against these regular expressions. All assets matching any of the regexes mentioned will be ignored while scanning.
To access the Ignore patterns , follow these steps:
- Go to the Scan rule sets page.
- Select the scan rule set you want to edit.
- In the Scan rule set page, select the Ignore Patterns tab.
You can use the regex expression:
Example:
https://bhargavasynapsegen2.dfs.core.windows.net/card$ (this will ignore the folders but not the contents)
Using the above expression, the scan ignores the card folder but will scan inside the files.
Without ignore patterns:
With ignore patterns.
Assets discovered is only 6(ignored my folder-card)
Reference document:
https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/purview/create-a-scan-rule-set.md
I hope this helps. Please let me know if you have any further questions.