Hello 51621659, You looking for the Azure Advisor recommendation rule for Right-size or shutdown underutilized virtual machines (specifically when CPU utilization < 20%) and how this is represented in Azure Resource Graph Explorer. You want to know the table name and the related field names that capture this recommendation.
The Azure Advisor recommendation for CPU Utilization < 20% is stored in the advisorresources table in Azure Resource Graph. The CPU threshold and average utilization values are not first‑class columns; instead, they are embedded within properties.extendedProperties of the recommendation record.You can filter for Cost recommendations related to underutilized VMs
advisorresources
| where type == "microsoft.advisor/recommendations"
| where properties.category == "Cost"
| where properties.shortDescription.problem has "underutilized"
Locate the CPU rule inside extendedProperties for example Average CPU usage in properties.extendedProperties.avgCpuPercentage
The query you can try like below:
advisorresources
| where type == "microsoft.advisor/recommendations"
| where properties.category == "Cost"
| where tostring(properties.impactedField) == "Microsoft.Compute/virtualMachines"
| where properties.shortDescription.problem has "underutilized"
| project
id,
name,
problem = properties.shortDescription.problem,
solution = properties.shortDescription.solution,
resourceId = properties.resourceMetadata.resourceId,
avgCpu = properties.extendedProperties.avgCpuPercentage,
cpuThreshold = properties.extendedProperties.cpuThreshold,
extendedProperties = properties.extendedProperties
Reduce service costs using Azure Advisor - Azure Advisor | Microsoft Learn
Hope this helps, please do let us know if you have any questions, Thanks