VM scale set distributed in Availability Zone with disk managed in LRS

Andrea 126 Reputation points
2024-07-02T15:27:30.86+00:00

Hello everyone,

I have a single VM windows server on prem that store an application with configuration files placed in a local disk folder. This application simply launch a lot of batch file (script).

I need to migrate it to Azure (without replatform) and I'd like to deploy 2 VM scale set with redundancy in two Availability Zone (one VM on each Zone) , my question is:

does each VM needs to have disk managed in ZRS or it should be enough to set it in LRS for having ?

the goal is: if I will edit some script or configuration file (in local disk of one of VM) this changed need to replicated to the VM in the other zone. Is it possible (I cannot use storage account for this aim) ?

thanks

best regards

Andrew

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,478 questions
{count} votes

Accepted answer
  1. Andreas Baumgarten 102.2K Reputation points MVP
    2024-07-02T16:24:39.1733333+00:00

    Hi @Andrea Galli ,

    by default there is no replication process for disk content.

    But maybe this fits your requirement:

    Create a data disk with the following specifications:

    • Choose ZRS for the disk size (size should fit your requirement but choose Zone-redundant storage)
    • Enable shared disk in the Advanced settings.

    This way you will get a zone redundant disk that can be mounted to multiple VMs.

    Store your batch files/scripts on this shared disk.

    This will offer redundancy on zone outage but you have only one location for the files.

    User's image

    User's image


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

    Regards

    Andreas Baumgarten

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful