az vm migrate-to-vmss
Migrate a virtual machine from availability set to Flexible Virtual Machine Scale Set. Azure CLI reference
4 options Its page in the Azure CLI reference
Options
--target-fault-domainThe target compute fault domain of VM migration to Flexible Virtual Machine Scale Set.--target-vm-sizeThe target Virtual Machine size of VM migration to Flexible Virtual Machine Scale Set.--target-zoneThe target zone of VM migration to Flexible Virtual Machine Scale Set.--vm-nameThe name of the virtual machine.