CmdID / az / az vm / az vm run-command
az vm run-command create
The operation to create the run command. Azure CLI reference
14 options Its page in the Azure CLI reference
Options
--async-executionOptional.--command-idSpecify a commandId of predefined built-in script.--error-blob-uriSpecify the Azure storage blob where script error stream will be uploaded.--location, -lLocation.--output-blob-uriSpecify the Azure storage blob (SAS URI) where script output stream will be uploaded.--protected-parameters, --parametersThe parameters used by the script.--run-as-passwordPassword if needed for using run-as-user parameter.--run-as-userBy default script process runs under system/root user.--run-command-name, --nameThe name of the virtual machine run command.--script-uriSpecify the script download location.--scriptSpecify the script content to be executed on the VM.--tagsspace-separated tags: key[=value] [key[=value] ...].--timeout-in-secondsThe timeout in seconds to execute the run command.--vm-nameThe name of the virtual machine