diff --git a/azure-resources/Compute/virtualMachines/kql/fa0cf4f5-0b21-47b7-89a9-ee936f193ce1.kql b/azure-resources/Compute/virtualMachines/kql/fa0cf4f5-0b21-47b7-89a9-ee936f193ce1.kql new file mode 100644 index 000000000..856e40441 --- /dev/null +++ b/azure-resources/Compute/virtualMachines/kql/fa0cf4f5-0b21-47b7-89a9-ee936f193ce1.kql @@ -0,0 +1,7 @@ +// Azure Resource Graph Query +// Find eligible Disks that are not zonal nor zone redundant +resources +| where type == 'microsoft.compute/disks' +| 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 diff --git a/azure-resources/Compute/virtualMachines/recommendations.yaml b/azure-resources/Compute/virtualMachines/recommendations.yaml index 952059758..bd058ccca 100644 --- a/azure-resources/Compute/virtualMachines/recommendations.yaml +++ b/azure-resources/Compute/virtualMachines/recommendations.yaml @@ -513,3 +513,22 @@ url: "https://learn.microsoft.com/azure/virtual-machines/linux/scheduled-events" - name: Azure Metadata Service Scheduled Events for Windows VMs url: "https://learn.microsoft.com/azure/virtual-machines/windows/scheduled-events" + +- description: Use ZRS Disks or Protect LRS Disks from Availability Zone Failure + aprlGuid: fa0cf4f5-0b21-47b7-89a9-ee936f193ce1 + recommendationTypeId: null + recommendationControl: High Availability + recommendationImpact: Medium + recommendationResourceType: Microsoft.Compute/virtualMachines + recommendationMetadataState: Active + longDescription: | + Azure disks offers a zone-redundant storage (ZRS) option for workloads that need to be resilient to an entire zone being down. Due to the cross-zone data replication, ZRS disks have higher write latency when compared to the locally-redundant option (LRS), so make sure to benchmark your disks. + potentialBenefits: Enhanced Disk resilience to failures + pgVerified: true + publishedToLearn: false + publishedToAdvisor: false + automationAvailable: arg + tags: null + learnMoreLink: + - name: Redundancy options for managed disks + url: "https://aka.ms/zrsdisksdoc"