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