What happens to data disk attached to VM/VMSS when VM/VMSS configured with availability zone fails?

Jeyasingh, Vijayalingam 81 Reputation points
2024-08-31T20:04:09.93+00:00

What happens to the data disk when a VM configured with Availability zones failed in any one zone? Does it automatically attach to vm once the vm is spinned up in another zone? Similarly what happens to the data disk when an instance running under vmss(with 1 fixed instance) fails? Does it automatically re-attach when the new instance come up? I did not find any direct answer to this realistic situation. Can I request to clarify me?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,994 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
644 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
408 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Vahid Ghafarpour 21,725 Reputation points
    2024-08-31T21:09:12.93+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    When a VM configured with Availability Zones fails in one zone, the data disk does not automatically attach to a new VM in another zone. You would need to manually attach the data disk to the new VM. This is because the data disk is tied to the specific zone where the original VM was running.

    https://learn.microsoft.com/en-us/azure/virtual-machines/availability#azure-storage-redundancy

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **


  2. Andreas Baumgarten 111.3K Reputation points MVP
    2024-08-31T21:28:11.86+00:00

    Hi @Jeyasingh, Vijayalingam ,

    in addition to @Vahid Ghafarpour :

    In case of a full outage of an Azure region zone this might affect the data disk as well if the disk isn't from type zone-redundant (ZRS).

    For instance:

    VM deployed in Azure region zone 1 and data disk (managed disk in zone 1)

    In case of a full outage of zone 1 in the Azure region the data disk isn't available in any other zone in the Azure region. You can't attach the data disk to a VM in zone 2 or zone 3.

    To get the full advantage of zone redundancy in your scenario you need a data disk with type zone-redundant storage.

    User's image

    In this case the data disk will be synchronously replicated in all zones in the Azure region.

    Source: Zone-redundant storage for managed disks


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten


  3. Andreas Baumgarten 111.3K Reputation points MVP
    2024-09-01T12:25:05.8866667+00:00

    Hi @Jeyasingh, Vijayalingam ,

    I don't know the details of your HA requirements. Also I don't know what kind of service/application is running in the VM(s).

    Depending on your HA requirements, a ZRS service might be a good option. If you go for an geo-redundant approach you might run in latency issues in the case of HA failover. This is beside of higher costs and maintenance for HA.

    Maybe this link is helpful: Create a Virtual Machine Scale Set that uses Availability Zones


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.