Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new VM recommendation for ZRS Disk #55

Merged
merged 10 commits into from
Apr 24, 2024
Prev Previous commit
Next Next commit
Update fa0cf4f5-0b21-47b7-89a9-ee936f193ce1.kql
pinyuko authored Apr 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 1fe18c7600b262acd5c5a1d3d5b79d56c2f69189
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Azure Resource Graph Query
// Find eligible Disks that are not zonal, nor zone Redundant
Resources
// Find eligible Disks that are not zonal nor zone redundant
resources
| where type == 'microsoft.compute/disks'
| project recommendationId="fa0cf4f5-0b21-47b7-89a9-ee936f193ce1", subscriptionId, resourceGroup, name, location, type, sku, Zones = zones, ZoneResilient = sku.name has_cs 'ZRS' or array_length(zones) > 0
| where sku has "Premium_LRS" or sku has "StandardSSD_LRS"
| where ZoneResilient == 0
| project recommendationId="fa0cf4f5-0b21-47b7-89a9-ee936f193ce1", name, id, tags, param1 = sku, param2 = sku.name has_cs 'ZRS' or array_length(zones) > 0
| where param1 has "Premium_LRS" or param1 has "StandardSSD_LRS"
| where param2 == 0