Skip to content

Commit e744aa8

Browse files
committed
moves acr include file
1 parent 669685f commit e744aa8

File tree

2 files changed

+20
-24
lines changed

2 files changed

+20
-24
lines changed

includes/resource-graph/samples/bycat/azure-container-registry.md renamed to articles/container-registry/includes/azure-container-registry.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,38 @@
11
---
2-
author: davidsmatlak
3-
ms.service: resource-graph
2+
ms.service: container-registry
43
ms.topic: include
54
ms.date: 07/07/2022
6-
ms.author: davidsmatlak
7-
ms.custom: generated
5+
author: tejaswikolli-web
6+
ms.author: tejaswikolli
87
---
98

109
### List Container Registry vulnerability assessment results
1110

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.
1312

1413
```kusto
1514
SecurityResources
1615
| where type == 'microsoft.security/assessments'
1716
| where properties.displayName contains 'Container registry images should have vulnerability findings resolved'
1817
| summarize by assessmentKey=name //the ID of the assessment
1918
| 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)
2322
) on assessmentKey
2423
| project assessmentKey, subassessmentKey=name, id, parse_json(properties), resourceGroup, subscriptionId, tenantId
2524
| 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
3736
```
3837

3938
# [Azure CLI](#tab/azure-cli)

articles/container-registry/resource-graph-samples.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@ ms.custom: subject-resourcegraph-sample
1010
---
1111
# Azure Resource Graph sample queries for Azure Container Registry
1212

13-
This page is a collection of [Azure Resource Graph](../governance/resource-graph/overview.md) sample queries for Azure Container Registry. For a complete list of Azure Resource Graph samples, see
14-
[Resource Graph samples by Category](../governance/resource-graph/samples/samples-by-category.md) and [Resource Graph samples by Table](../governance/resource-graph/samples/samples-by-table.md).
13+
This page is a collection of [Azure Resource Graph](../governance/resource-graph/overview.md) sample queries for Azure Container Registry.
1514

1615
## Sample queries
1716

18-
[!INCLUDE [azure-resource-graph-samples-cat-acr](../../includes/resource-graph/samples/bycat/azure-container-registry.md)]
17+
[!INCLUDE [azure-resource-graph-samples-cat-acr](./includes/azure-container-registry.md)]
1918

2019
## Next steps
2120

2221
- Learn more about the [query language](../governance/resource-graph/concepts/query-language.md).
2322
- Learn more about how to [explore resources](../governance/resource-graph/concepts/explore-resources.md).
24-
- See samples of [Starter language queries](../governance/resource-graph/samples/starter.md).
25-
- See samples of [Advanced language queries](../governance/resource-graph/samples/advanced.md).

0 commit comments

Comments
 (0)