|
1 | 1 | ---
|
2 |
| -author: davidsmatlak |
3 |
| -ms.service: resource-graph |
| 2 | +ms.service: container-registry |
4 | 3 | ms.topic: include
|
5 | 4 | ms.date: 07/07/2022
|
6 |
| -ms.author: davidsmatlak |
7 |
| -ms.custom: generated |
| 5 | +author: tejaswikolli-web |
| 6 | +ms.author: tejaswikolli |
8 | 7 | ---
|
9 | 8 |
|
10 | 9 | ### List Container Registry vulnerability assessment results
|
11 | 10 |
|
12 |
| -Returns all the all the vulnerabilities found on container images. Microsoft Defender for Containers has to be enabled in order to view these security findings. |
| 11 | +Returns all the vulnerabilities found on container images. Microsoft Defender for Containers has to be enabled in order to view these security findings. |
13 | 12 |
|
14 | 13 | ```kusto
|
15 | 14 | SecurityResources
|
16 | 15 | | where type == 'microsoft.security/assessments'
|
17 | 16 | | where properties.displayName contains 'Container registry images should have vulnerability findings resolved'
|
18 | 17 | | summarize by assessmentKey=name //the ID of the assessment
|
19 | 18 | | join kind=inner (
|
20 |
| - securityresources |
21 |
| - | where type == 'microsoft.security/assessments/subassessments' |
22 |
| - | extend assessmentKey = extract('.*assessments/(.+?)/.*',1, id) |
| 19 | + securityresources |
| 20 | + | where type == 'microsoft.security/assessments/subassessments' |
| 21 | + | extend assessmentKey = extract('.*assessments/(.+?)/.*',1, id) |
23 | 22 | ) on assessmentKey
|
24 | 23 | | project assessmentKey, subassessmentKey=name, id, parse_json(properties), resourceGroup, subscriptionId, tenantId
|
25 | 24 | | extend description = properties.description,
|
26 |
| - displayName = properties.displayName, |
27 |
| - resourceId = properties.resourceDetails.id, |
28 |
| - resourceSource = properties.resourceDetails.source, |
29 |
| - category = properties.category, |
30 |
| - severity = properties.status.severity, |
31 |
| - code = properties.status.code, |
32 |
| - timeGenerated = properties.timeGenerated, |
33 |
| - remediation = properties.remediation, |
34 |
| - impact = properties.impact, |
35 |
| - vulnId = properties.id, |
36 |
| - additionalData = properties.additionalData |
| 25 | + displayName = properties.displayName, |
| 26 | + resourceId = properties.resourceDetails.id, |
| 27 | + resourceSource = properties.resourceDetails.source, |
| 28 | + category = properties.category, |
| 29 | + severity = properties.status.severity, |
| 30 | + code = properties.status.code, |
| 31 | + timeGenerated = properties.timeGenerated, |
| 32 | + remediation = properties.remediation, |
| 33 | + impact = properties.impact, |
| 34 | + vulnId = properties.id, |
| 35 | + additionalData = properties.additionalData |
37 | 36 | ```
|
38 | 37 |
|
39 | 38 | # [Azure CLI](#tab/azure-cli)
|
|
0 commit comments