Hi,
Here is a query that gets all such resources that have filter property in properties. Note that some resources do not have it if they are assigned directly to a resource instead of being dynamic scope. The filter is put into its own property.
maintenanceresources
| where bag_has_key(properties, 'filter')
| extend Filter = parse_json(tostring(properties.['filter']))
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.