CmdID / az / az connectedmachine / az connectedmachine run-command
az connectedmachine run-command create
Create a run command. Azure CLI extensions reference
17 options Its page in the Azure CLI extensions reference
Options
--async-executionOptional.--command-idSpecifies the commandId of predefined built-in script.--error-blob-managed-identity, --error-blob-identity, --error-blob-idUser-assigned managed identity that has access to errorBlobUri storage blob.--error-blob-uriSpecifies the Azure storage blob where script error stream will be uploaded.--machine-nameThe name of the hybrid machine.--output-blob-managed-identity, --output-blob-identity, --output-blob-idUser-assigned managed identity that has access to outputBlobUri storage blob.--output-blob-uriSpecifies the Azure storage blob where script output stream will be uploaded.--protected-parameters, --parametersThe parameters used by the script.--run-as-passwordSpecifies the user account password on the machine when executing the run command.--run-as-userSpecifies the user account on the machine when executing the run command.--run-command-name, --name, -nThe name of the run command.--script-uri-managed-identity, --script-uri-idUser-assigned managed identity that has access to scriptUri in case of Azure storage blob.--script-uriSpecifies the script download location.--scriptSpecifies the script content to be executed on the machine.--sourceThe source of the run command script.--tagsResource tags.--timeout-in-secondsThe timeout in seconds to execute the run command.