Add a standalone vm on a availability set

Cinthia Rodriguez 110 Reputation points
2025-01-14T19:50:48.35+00:00

Hello,

I would like to know if , it is possible to add an existing standalone virtual machine to an availability set, if so how can I added it.Thank you

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,244 questions
0 comments No comments
{count} votes

Accepted answer
  1. TP 102K Reputation points
    2025-01-14T20:01:01.2833333+00:00

    Hi Cinthia,

    No, it is not possible to add an existing VM to an availability set since you can only do that when it is first created. There is a sample script that shows how to delete/recreate a VM to make it part of availability set.

    Change the availability set for a VM by using Azure PowerShell

    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/change-availability-set

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.