CmdID / az / az vmss / az vmss run-command
az vmss run-command wait
Place the CLI in a waiting state until a condition is met. Azure CLI reference
4 options Its page in the Azure CLI reference
Options
--expandThe expand expression to apply on the operation.--instance-idThe instance of the VM--run-command-name, --name, -nThe name of the VirtualMachineRunCommand--vmss-nameThe name of the VirtualMachineScaleSet