securityresources
| where type == "microsoft.security/assessments"
| extend source = trim(' ', tolower(tostring(properties.resourceDetails.Source)))
| extend resourceId = trim(' ', tolower(tostring(case(source =~ "azure", properties.resourceDetails.Id,extract('^(.+)/providers/Microsoft.Security/assessments/.+$',1,id)))))
| extend displayName = trim(" ", tostring(properties.metadata.displayName))
| extend description = trim(" ", tostring(properties.metadata.description))
| extend remediationDescription = trim(" ", tostring(properties.metadata.remediationDescription))
| extend status = trim(" ", tostring(properties.status.code))
| extend cause = trim(" ", tostring(properties.status.cause))
| extend severity = trim(" ", tostring(properties.metadata.severity))
| extend userImpact = trim(" ", tostring(properties.metadata.userImpact))
| extend azurePortal = trim(" ", tostring(properties.links.azurePortal))
| extend statusChangeDate = trim(" ", tostring(properties.status.statusChangeDate))
| extend assessmentKey = tostring(name)
| where displayName == "Deprecated accounts should be removed from your subscription"
| sort by todatetime(statusChangeDate)
// *** displayName = Recommendation column in below screenshot.
// *** status = Unhealthy resources column in below screenshot.