CmdID / az / az vm / az vm repair
az vm repair restore
Replace source VM's OS disk with data disk from repair VM. Azure CLI extensions reference
4 options Its page in the Azure CLI extensions reference
Options
--disk-nameName of fixed data disk.--no-cleanup, --noKeeps the repair resources without confirmation.--repair-vm-idRepair VM resource id.--yesDeletes the repair resources without confirmation.