Autoshown feature along with Availability set for Azure VM

MS Techie 2,316 Reputation points

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 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.
192 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
8,247 questions
No comments
{count} votes

Accepted answer
  1. SUNOJ KUMAR YELURU 12,411 Reputation points Microsoft MVP

    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.


    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.

    No comments

1 additional answer

Sort by: Most helpful
  1. singhh-msft 2,381 Reputation points

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


    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.:


    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.