Skip to content

Commit 1ed8891

Browse files
authored
Merge pull request #277789 from davidsmatlak/ds-move-arg-advisor
Moves Advisor include file for ARG sample
2 parents 9f324c1 + 5e2fba3 commit 1ed8891

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

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

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
---
2-
author: davidsmatlak
3-
ms.service: resource-graph
2+
ms.service: advisor
43
ms.topic: include
54
ms.date: 07/07/2022
6-
ms.author: davidsmatlak
7-
ms.custom: generated
5+
author: ikhapova
6+
ms.author: ikhapova
87
---
98

109
### Get cost savings summary from Azure Advisor
1110

12-
This query summarizes the cost savings of each [Azure Advisor](../../../../articles/advisor/advisor-overview.md) recommendation.
11+
This query summarizes the cost savings of each [Azure Advisor](../advisor-overview.md) recommendation.
1312

1413
```kusto
1514
AdvisorResources
1615
| where type == 'microsoft.advisor/recommendations'
1716
| where properties.category == 'Cost'
1817
| extend
19-
resources = tostring(properties.resourceMetadata.resourceId),
20-
savings = todouble(properties.extendedProperties.savingsAmount),
21-
solution = tostring(properties.shortDescription.solution),
22-
currency = tostring(properties.extendedProperties.savingsCurrency)
18+
resources = tostring(properties.resourceMetadata.resourceId),
19+
savings = todouble(properties.extendedProperties.savingsAmount),
20+
solution = tostring(properties.shortDescription.solution),
21+
currency = tostring(properties.extendedProperties.savingsCurrency)
2322
| summarize
24-
dcount(resources),
25-
bin(sum(savings), 0.01)
26-
by solution, currency
23+
dcount(resources),
24+
bin(sum(savings), 0.01)
25+
by solution, currency
2726
| project solution, dcount_resources, sum_savings, currency
2827
| order by sum_savings desc
2928
```

articles/advisor/resource-graph-samples.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ ms.custom: subject-resourcegraph-sample
77
---
88
# Azure Resource Graph sample queries for Azure Advisor
99

10-
This page is a collection of [Azure Resource Graph](../governance/resource-graph/overview.md) sample queries for Azure Advisor. For a complete list of Azure Resource Graph samples, see [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).
10+
This page is a collection of [Azure Resource Graph](../governance/resource-graph/overview.md) sample queries for Azure Advisor.
1111

1212
## Sample queries
1313

14-
[!INCLUDE [azure-resource-graph-samples-cat-advisor](../../includes/resource-graph/samples/bycat/azure-advisor.md)]
14+
[!INCLUDE [azure-resource-graph-samples-cat-advisor](./includes/azure-advisor.md)]
1515

1616
## Next steps
1717

1818
- Learn more about the [query language](../governance/resource-graph/concepts/query-language.md).
1919
- Learn more about how to [explore resources](../governance/resource-graph/concepts/explore-resources.md).
20-
- See samples of [Starter language queries](../governance/resource-graph/samples/starter.md).
21-
- See samples of [Advanced language queries](../governance/resource-graph/samples/advanced.md).

0 commit comments

Comments
 (0)