Can VMs in an available set belong to different virtual networks?

XJ 21 Reputation points
2020-09-18T22:01:04.777+00:00

Pretty much what the title says. When I add VMs to an available set, do the VMs have to be in the same virtual network?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,347 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,219 questions
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 48,196 Reputation points Microsoft Employee
    2020-09-21T08:22:21.297+00:00

    Hello @XJ ,

    No, you cannot add VMs from different Virtual Networks in an Availability set. You can only add a VM to an availability set when it's created and it will not allow to add an existing availability set if it contains VMs from another Virtual Network. It will prompt you to select the Virtual Network where the existing VMs reside and you will receive a warning as shown below:

    26151-avset.jpg

    For more information on availability sets, please refer:
    https://learn.microsoft.com/en-us/azure/virtual-machines/availability#availability-sets
    https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface-vm#constraints

    Kindly let us know if the above helps or you need further assistance on this issue.

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

    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.


1 additional answer

Sort by: Most helpful
  1. K Sheahan Kularathne 431 Reputation points
    2020-09-19T19:06:14.3+00:00

    virtual-network-network-interface-vm

    You will find the solution to your problem in above link.

    Please marked as Answered if this is helps you

    0 comments No comments