az vm wait
Place the CLI in a waiting state until a condition is met. Azure CLI reference
2 options Its page in the Azure CLI reference
Options
--expandThe expand expression to apply on the operation.--vm-name, --name, -nThe name of the virtual machine.