High Availability in Azure VM

Muhd Azhar 45 Reputation points
2023-11-30T02:51:19.5966667+00:00

Hello,

I'm currently exploring the High Availability (HA) potential in Azure.

From my understanding, HA involves having a set of servers. For instance, if I have a WEB01 VM, applying HA would mean having another WEB01 VM.

I'm curious about how it works when I need to connect an application in WEB01. If updates or processing occur and connections to SQL are made—essentially, if a file within the application is consistently updated—how does this file discrepancy get managed in the other WEB01?

Thank you.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,178 questions
Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
318 questions
0 comments No comments
{count} votes

Accepted answer
  1. kobulloc-MSFT 23,496 Reputation points Microsoft Employee
    2023-11-30T17:33:58.91+00:00

    Hello, @Muhd Azhar !

    How does high availability (HA) work for VMs with app dependencies like SQL?

    There are many different options for hosting applications on Azure depending on how much simplicity you want versus how much control you want. Virtual Machines (VMs) are on the control end of the spectrum and do not include stateful data management. Instead the intended architecture would be to design your application with stateful data that resides outside of the VM. In N-tier architecture, for example, which is used for simple web applications and migrating an on-premises application to Azure with minimal refactoring, you would host the data tier on SQL Server.

    N-tier architecture running on VMs:

    Physical diagram of an N-tier architecture

    Another option when looking at VM high availability is Virtual Machine Scale Sets which allow you to create and manage a group of load balanced VMs that provides high availability to your applications and allow you to centrally manage, configure, and update many VMs.

    Expanding further, there are a variety of database solutions that also have high availability that work on similar principles.

    Example of HA in Azure SQL Database for Basic, Standard and General Purpose service tiers:

    Diagram showing separation of compute and storage.

    Example of HA in Azure SQL Database for Hyperscale service tier:

    Diagram showing Hyperscale functional architecture.

    I'm going to include some additional reading below which covers the key HA information for a VM hosted applications, as well as a link for services that automate a lot of the high availability overhead:


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful