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
Original file line number Diff line number Diff line change
@@ -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", 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
21 changes: 21 additions & 0 deletions azure-resources/Compute/virtualMachines/recommendations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -513,3 +513,24 @@
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 managed disks offer two storage redundancy options: zone-redundant storage (ZRS) and locally redundant storage (LRS). ZRS provides resiliency in the event of a zonal outage. However, the write latency for LRS disks is better than ZRS disks. If you are using an LRS disk, please follow "Redundancy options for managed disks" documentation and take action to protect it from a zonal failure.
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"
- name: Convert a disk from LRS to ZRS
url: "https://aka.ms/migratedisksfromLRStoZRS"