From d09117fc137c911a5a283e8643336f369f1a7257 Mon Sep 17 00:00:00 2001 From: Rodrigo Santos Date: Tue, 22 Apr 2025 17:52:39 -0400 Subject: [PATCH] Fix - Duplicated Query - b60ae773-9917-4bca-8a42-7cb45365a917.kql There is already a query that captures this regardless of if it is specialized workload or not. --- .../b60ae773-9917-4bca-8a42-7cb45365a917.kql | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/azure-specialized-workloads/sap/kql/b60ae773-9917-4bca-8a42-7cb45365a917.kql b/azure-specialized-workloads/sap/kql/b60ae773-9917-4bca-8a42-7cb45365a917.kql index 5ddcae559..614a7f9ca 100644 --- a/azure-specialized-workloads/sap/kql/b60ae773-9917-4bca-8a42-7cb45365a917.kql +++ b/azure-specialized-workloads/sap/kql/b60ae773-9917-4bca-8a42-7cb45365a917.kql @@ -1,16 +1 @@ -// Azure Resource Graph Query -// Find all single instance VMs that have an attached disk that is not in the Premium or Ultra sku tier. - -resources -| where type =~ 'Microsoft.Compute/virtualMachines' -| where isnull(properties.virtualMachineScaleSet.id) -| where isnotnull(properties.availabilitySet) -| extend lname = tolower(name) -| join kind=leftouter(resources - | where type =~ 'Microsoft.Compute/disks' - | where not(sku.tier =~ 'Premium') and not(sku.tier =~ 'Ultra') - | extend lname = tolower(tostring(split(managedBy, '/')[8])) - | project lname, name - | summarize disks = make_list(name) by lname) on lname -| where isnotnull(disks) -| project recommendationId = "b60ae773-9917-4bca-8a42-7cb45365a917", name, id, tags, param1=strcat("AffectedDisks: ", disks) +// under-development