Skip to content

Add wait/no-wait support to Commands #22788

@sdavis3

Description

@sdavis3

az vm run-command needs --no-wait option.

Related command

az vm run-command invoke -g rgName -n vmName --no-wait --command-id RunPowerShellScript --scripts @c:\temp\run_this_script.ps1

Is your feature request related to a problem? Please describe.
When trying to run PowerShell scripts against a VM, the CLI forces you to await the results before being able to continue. A long running command reduces productivity. A --no-wait option could significantly improve productivity.

Describe the solution you'd like
Add --no-wait to the run-command invocation.

Describe alternatives you've considered
The alternative is to open multiple terminal windows and issue separate commands. This is the same experience as using the portal to navigate between VMs to issue commands.

Additional context
N/A

Metadata

Metadata

Labels

Auto-AssignAuto assign by botComputeaz vm/vmss/image/disk/snapshotcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions