Azure / Azure/azure-cli

[az vm run-command invoke] Support use of newer features already supported by the RunCommand API

Open
#16,340 2 comments 0 reactions 1 assignee Claimed by @qwordy View on GitHub
act-observability-squad Compute feature-request Service Team Support Request
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.