Azure Defender | Filter API by properties fields

Alon Golombek 20 Reputation points
2025-02-16T14:10:27.69+00:00

Hi,

I am trying to use this API to fetch detections:

'https://management.azure.com/subscriptions/<subscription_id>/providers/Microsoft.Security/alerts?api-version=2022-01-01&$filter=properties/startTimeUtc gt <datetime>'

However, the results are not filtered by the properties.startTimeUtc field.

Is there a way to make it work?

thanks

Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,499 questions
0 comments No comments
{count} votes

Accepted answer
  1. Givary-MSFT 35,371 Reputation points Microsoft Employee
    2025-02-18T08:31:11.4233333+00:00

    @Alon Golombek Thank you for reaching out to us, as per our documentation - https://learn.microsoft.com/en-us/rest/api/defenderforcloud/alerts/list?view=rest-defenderforcloud-2022-01-01&tabs=HTTP we don't have $filter parameter mentioned otherwise it would have been documented.

    For example, if you see this doc - https://learn.microsoft.com/en-us/rest/api/monitor/metrics/list?view=rest-monitor-2023-10-01&tabs=HTTP for Azure monitor, we clearly mentioned over here $filter can be used.

    Let me know if you have any further questions, feel free to post back.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.