Skip to content

Commit 99c757e

Browse files
authored
fix: Duplicated Query - b60ae773-9917-4bca-8a42-7cb45365a917.kql (#720)
1 parent 6fe8a7c commit 99c757e

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1 @@
1-
// Azure Resource Graph Query
2-
// Find all single instance VMs that have an attached disk that is not in the Premium or Ultra sku tier.
3-
4-
resources
5-
| where type =~ 'Microsoft.Compute/virtualMachines'
6-
| where isnull(properties.virtualMachineScaleSet.id)
7-
| where isnotnull(properties.availabilitySet)
8-
| extend lname = tolower(name)
9-
| join kind=leftouter(resources
10-
| where type =~ 'Microsoft.Compute/disks'
11-
| where not(sku.tier =~ 'Premium') and not(sku.tier =~ 'Ultra')
12-
| extend lname = tolower(tostring(split(managedBy, '/')[8]))
13-
| project lname, name
14-
| summarize disks = make_list(name) by lname) on lname
15-
| where isnotnull(disks)
16-
| project recommendationId = "b60ae773-9917-4bca-8a42-7cb45365a917", name, id, tags, param1=strcat("AffectedDisks: ", disks)
1+
// under-development

0 commit comments

Comments
 (0)