CmdID / az / az vmss / az vmss run-command
az vmss run-command update
The operation to update the VMSS run command. Azure CLI reference
15 options Its page in the Azure CLI reference
Options
--async-executionOptional.--command-idSpecify a commandId of predefined built-in script.--error-blob-uriUri (without SAS) to an append blob where the script error stream will be uploaded.--instance-idThe instance ID of the virtual machine.--location, -lLocation.--output-blob-uriUri (without SAS) to an append blob where the script output 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.--vmss-nameThe name of the VM scale set.