Add VM's to existing AV Set
We do not have direct option to add the VM’s to Availability Set.
We need to delete only vm not OS disk and NIC card and deploy the VM by using AV set option.
We can perform this option by using powershell commands in Azure cloudshell.
Below are the steps:
- Login to shell.azure.com
- Select powershell.
- Import module –
Install-Module AzureRm.AvailabilitySetManagement
- Below is the command to add the VM to AV set
Add-AzureRmAvSetVmToAvailabilitySet -ResourceGroupName “HUBRG01” -VMName “APP1” -OsType Linux -AvailabilitySet “eastavset01”







