CmdID / az / az vm / az vm availability-set
az vm availability-set convert-to-vmss
Create a new Flexible Virtual Machine Scale Set and migrate all the Virtual Machines in the Availability Set. Azure CLI reference
2 options Its page in the Azure CLI reference
Options
--availability-set-name, --name, -nThe name of the availability set.--vmss-nameSpecify information about the Virtual Machine Scale Set that the Availability Set should be converted to.