This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
When specifying the excludeRegexes and includeRegexes properties in the request through the SDK, specifying them as None, the request is successfully processed and the scan filter is updated.
Please check and update documentation and handle this error correctly to inform consumers of the incorrect request body content.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
ID: aef29dff-2214-2a90-3872-0763bbf43cc7
Version Independent ID: a8fe4273-36e9-3520-4c80-d673ced27dd4
Have spent ages trying to troubleshoot this issue and found the root cause.
Problem
In the official documentation the example body for a filter.create_or_update request is:
However, using this never works and Purview emits an HTTP 400 error with no further details.
Solution
Having traced the Purview Web UI behaviour when making the same change, I have found that the request body should actually contain the following:
When specifying the
excludeRegexes
andincludeRegexes
properties in the request through the SDK, specifying them as None, the request is successfully processed and the scan filter is updated.Please check and update documentation and handle this error correctly to inform consumers of the incorrect request body content.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.