{Compute} az vm/vmss run-command invoke: Fix --scripts parameter mapping#32280
{Compute} az vm/vmss run-command invoke: Fix --scripts parameter mapping#32280
az vm/vmss run-command invoke: Fix --scripts parameter mapping#32280Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a parameter mapping issue in the az vm/vmss run-command invoke commands where the scripts parameter was incorrectly mapped to scripts instead of script in the API calls.
- Fixed parameter name from
scriptstoscriptin VM and VMSS run-command invoke operations - Ensures proper API request formatting for both VM and VMSS scenarios
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
az vm/vmss run-command invoke: Fix scripts param mappingaz vm/vmss run-command invoke: Fix --scripts parameter mapping
|
Hi @cxznmhdcxz |
Related command
az vm/vmss run-command invokeDescription
Close: #32286
Results with this PR:
Command to reproduce:
az vm run-command invoke -g zytest-test -n vm --command-id RunShellScript --scripts "echo $0 $1" --parameters hello world --debugRequest:
Response:
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.