Skip to content

Commit 4bc7799

Browse files
authored
{Compute} az vm/vmss run-command invoke: Fix --scripts parameter mapping (#32280)
1 parent c0a728a commit 4bc7799

File tree

6 files changed

+2151
-2053
lines changed

6 files changed

+2151
-2053
lines changed

src/azure-cli/azure/cli/command_modules/vm/custom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2797,7 +2797,7 @@ def run_command_invoke(cmd, resource_group_name, vm_vmss_name, command_id, scrip
27972797
'vmss_name': vm_vmss_name,
27982798
'instance_id': instance_id,
27992799
'command_id': command_id,
2800-
'scripts': scripts,
2800+
'script': scripts,
28012801
'parameters': params
28022802
})
28032803

@@ -2807,7 +2807,7 @@ def run_command_invoke(cmd, resource_group_name, vm_vmss_name, command_id, scrip
28072807
'resource_group': resource_group_name,
28082808
'vm_name': vm_vmss_name,
28092809
'command_id': command_id,
2810-
'scripts': scripts,
2810+
'script': scripts,
28112811
'parameters': params
28122812
})
28132813

src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_run_command_v2.yaml

Lines changed: 895 additions & 848 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_run_command_with_parameters.yaml

Lines changed: 806 additions & 757 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)