az feedback auto-generates most of the information requested below, as of CLI version 2.0.62
Describe the bug
I am using the az cli within PowerShell. I have tried the following, which only runs the command on the first VM instead of all the VMs listed:
az vmss run-command invoke --command-id RunPowerShellScript --scripts @script.ps1 --ids ((az vmss list-instances -n REDACTED -g REDACTED --query "[].id" --output tsv) -join ' ')`
I confirmed that the az vmss list-instances command returned ids for all the VMs in the VMSS.
To Reproduce
See above. (I am also internal and happy to debug this in real time :))
Expected behavior
I would expect the command to be run on all VMs in the VMSS.
Environment summary
az version 2.29.0
PowerShell version 5.1.19041.1237
Additional context
n/a
Describe the bug
I am using the az cli within PowerShell. I have tried the following, which only runs the command on the first VM instead of all the VMs listed:
az vmss run-command invoke --command-id RunPowerShellScript --scripts@script.ps1 --ids ((az vmss list-instances -n REDACTED -g REDACTED --query "[].id" --output tsv) -join ' ')`I confirmed that the
az vmss list-instancescommand returned ids for all the VMs in the VMSS.To Reproduce
See above. (I am also internal and happy to debug this in real time :))
Expected behavior
I would expect the command to be run on all VMs in the VMSS.
Environment summary
az version 2.29.0
PowerShell version 5.1.19041.1237
Additional context
n/a