Unfortunately you will have to recreate the Virtual Machine. There are a number of scripts out there to help make this easier like this powershell script: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/change-availability-set
Aligning an Azure VM to Availability Set
Vishu
1,676
Reputation points
Hi Experts,
Please advise if an existing azure VM can be realigned to be a part of Availability sets or Availability Zones