Date: August 20, 2018
Tags: Availability Set, Azure, Azure Resource Manager, change availability set of existing azure vm
Changing The Availability Set Of An Existing Azure VM
6/21/2016 – Update. Since I posted this article I have been told by a reliable source that there is a newer PowerShell script that could Change Availability Set Of Existing Azure VM even more reliably. I haven’t tried it yet. But I trust the source and Microsoft Premiere Support directed him to this article. https://gallery.technet.microsoft.com/Azure-RM-Availability-Set-39e19d01
I was a little surprised to find out today that it is not easy to change what Availability Set a VM resides in once it is already created. The Azure portal has no mechanism of adding an existing VM to an Availability Set. Fortunately for me I stumbled upon this great resource.
Set Azure Resource Manager VM AvailabilitySet
By leveraging the PowerShell script available for download in that article I was able to add two existing VMs to what I had created. Finally I could Change Availability Set Of Existing Azure VM – what a life saver!