CmdID / az / az vm / az vm run-command
az vm run-command list
List run commands from a VM or a location Azure CLI reference
3 options Its page in the Azure CLI reference
Options
--expandThe expand expression to apply on the operation.--location, -lLocation.--vm-nameThe name of the virtual machine