[az vm run-command invoke] Support use of newer features already supported by the RunCommand API
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
**Is your feature request related to a problem? Please describe.**
For **az vm run-command invoke** please add params for these properties the API itself supports - asyncExecution, errorBlobUri, outputBlobUri, protectedParameters, runAsPassword, runAsUser, timeoutInSeconds, tags, and scriptUri.
**Describe the solution you'd like**
CLI should expose all API properties.
With regard to scriptUri - currently run-command invoke --scripts takes either script contents or local script path. But the RunCommand API already supports taking a URI to a script also (via scriptUri), so run-command invoke should support that also.
**Describe alternatives you've considered**
Alternative is to make the API calls directly, which defeats the purpose of having CLI.
**Additional context**
https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineruncommands/createorupdate#request-body
https://docs.microsoft.com/en-us/cli/azure/vm/run-command?view=azure-cli-latest#az_vm_run_command_invoke
Contributor guide
Assessment
This issue has not been assessed yet.