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:
Install-Module AzureRm.AvailabilitySetManagement
Add-AzureRmAvSetVmToAvailabilitySet -ResourceGroupName “HUBRG01” -VMName “APP1” -OsType Linux -AvailabilitySet “eastavset01”
🛠️ I’m an Infrastructure & DevOps engineer specializing in Azure, CI/CD, and secure, scalable web stacks. I publish field-tested patterns—load balancers, storage, networking, pipelines, and observability—that help teams ship reliably and safely. My goal is to turn complex concepts into clear, reproducible tutorials with commands, screenshots, and fixes. ☁️ Azure • 🔧 CI/CD • 🖧 Linux/Networking • 🛡️ Security • 📈 Observability 📬 hello@hyaking.com