KQL using SecurityResources needs to return Last Scan time of the AZ SQL database not of the host

Nguyen, Hoa 421 Reputation points
2025-08-04T16:22:41.4233333+00:00

I have a KQL query attached that returns the ScanTime but it is not the scan time for the database.
It appears to be the scan time for something else ( returns Aug 2 when the database UI shows 7/31).

Q: How to change my KQL query to return the scan time on the database as seen in snapshot?
Thank you very much !

Graph Explorer KQL query for vulnerabilities on sql server.txtimage

Microsoft Security | Microsoft Defender | Microsoft Defender for Cloud
{count} votes

Accepted answer
  1. Swaroop Kolli 3,345 Reputation points Microsoft External Staff Moderator
    2025-08-05T15:34:11.4966667+00:00

    Hello @Nguyen, Hoa,

    Instead of using properties.scantime using properties.additionaldata.lastreportedscantime has resolved the issue.

    Now you are able to see the required last scan time form the output of KQL query.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    1 person found this answer helpful.

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.