Autoshown feature along with Availability set for Azure VM

MS Techie 2,676 Reputation points
2021-03-17T07:04:44.48+00:00

As per my knowledge Availability set option for VMs is for High Availability.

I want to have 2 VMs in an availability set. From what i observed in Azure portal , is when we create 2 VMs and attach to the same availability set , then i can shutdown both the VMs. I thought in Availability set, if one machine goes down , other machine is always up and running..like at any time ,atleast 1 VM is running.

Please correct my understanding here.

Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
317 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,128 questions
0 comments No comments
{count} votes

Accepted answer
  1. SUNOJ KUMAR YELURU 13,936 Reputation points MVP
    2021-03-17T08:04:44.787+00:00

    Hi @MS Techie
    Thank You for posting in Q & A.
    Yes, you can shutdown both the VMs in availability set and if one machine is shutdown other machine is always up and running.

    An availability set is a logical grouping of VMs that allows Azure to understand how your application is built to provide for redundancy and availability. We recommended that two or more VMs are created within an availability set to provide for a highly available application and to meet the 99.95% Azure SLA

    There is no cost for the Availability Set itself, you only pay for each VM instance that you create.

    Note- Behind the scenes an availability set is a kind of clustering with not sync between VMs, it just try to keep the VMs up and running.

    Refer below screenshot.

    78550-capture2.jpg

    Please don’t forget to Accept the answer and up-vote wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. singhh-msft 2,431 Reputation points
    2021-03-17T08:22:52.963+00:00

    @MS Techie , thank you for reaching out to us. Happy to help. As I understand, you are referring to below situation:

    78702-89.png

    An availability set is a logical grouping of VMs that allows Azure to understand how your application is built to provide for redundancy and availability. It is basically your way to get an SLA of 99.95%, provided you put 2 or more VMs in it.:

    78662-88.png

    If you are interested in detailed working of Availability Sets, I would recommend you to check out How do availability sets work? and Understanding Azure Availability Sets.

    Each virtual machine in your availability set is assigned an update domain and a fault domain by the underlying Azure platform. Microsoft periodically updates the underlying Azure fabric that’s used to host VMs to patch security vulnerabilities and improve reliability and performance. These updates, which Microsoft refers to as planned maintenance events, are often performed without any impact to guest VMs. Sometimes, however, guest VMs must be rebooted to complete an update. To reduce the impact on guest VMs, the Azure fabric is divided into Update Domains to ensure that not all guest VMs are rebooted at the same time.

    Unplanned maintenance events are those which involve a hardware or physical failure in the fabric, such as a disk, power, or network card outage. Azure automatically fails over guest VMs to a working physical host in a different Fault Domain when an error condition is detected, again aimed at ensuring availability.

    So, if you are manually shutting down your VMs, they will (like you can still have 1 VM in availability set and which will not provide you the desired SLA as mentioned in here). In summary, this behavior is expected.

    ---------------------

    Please do not forget to "Accept the answer" wherever the information provided helps you. This will help others in the community as well.