You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/vm-repair/HISTORY.rst
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,10 @@
2
2
Release History
3
3
===============
4
4
5
+
2.0.3
6
+
++++++
7
+
Added new long parameter functionality in `vm repair run` cmd `parameters` parameter. When using the prefix `++`, the entire key=value string will be sent to the running script, not just the value.
8
+
5
9
2.0.2
6
10
++++++
7
11
Updated parameter descriptions and examples for `az vm repair create`.
Copy file name to clipboardExpand all lines: src/vm-repair/azext_vm_repair/_help.py
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,9 @@
64
64
- name: Run a script with parameters on the VM.
65
65
text: >
66
66
az vm repair run -g MyResourceGroup -n MySourceWinVM --run-id win-hello-world --parameters hello=hi world=earth --verbose
67
+
- name: Run a verified script with some parameters. In the first parameter named 'key', only the value 'test' is sent to the script. The second parameter named \'initiator\', uses the prefix '++' to send the entire following string 'initiator=selfhelp' to the script.
68
+
text: >
69
+
az vm repair run -g MyResourceGroup -n MySourceWinVM --run-id linux-alar2 --parameters key=test ++initiator=selfhelp --verbose --debug
67
70
- name: Run a local custom script on the VM.
68
71
text: >
69
72
az vm repair run -g MyResourceGroup -n MySourceWinVM --custom-script-file ./file.ps1 --verbose
Copy file name to clipboardExpand all lines: src/vm-repair/azext_vm_repair/_params.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ def load_arguments(self, _):
45
45
c.argument('repair_vm_id', help='Repair VM resource id.')
46
46
c.argument('run_id', help='Unique run id for run scripts.')
47
47
c.argument('custom_script_file', help='Custom script file to run on VM. Script should be PowerShell for windows, Bash for Linux.')
48
-
c.argument('parameters', nargs='+', help="Space-separated parameters in the format of '[name=]value'. Positional for bash scripts.")
48
+
c.argument('parameters', nargs='+', help="Space-separated parameters in the format of '[name=]value'. Positional for bash scripts. To avoid splitting on =, use the prefix \'++\' to send the entire string.")
49
49
c.argument('run_on_repair', help="Script will be run on the linked repair VM.")
50
50
c.argument('preview', help="URL of forked repair script library's map.json https://github.com/{user}/repair-script-library/blob/master/map.json")
51
51
@@ -71,4 +71,4 @@ def load_arguments(self, _):
71
71
c.argument('copy_disk_name', help='Name of OS disk copy.')
72
72
c.argument('repair_vm_name', help='Name of repair VM.')
73
73
c.argument('copy_disk_name', help='Name of OS disk copy.')
74
-
c.argument('repair_group_name', help='Name for new or existing resource group that will contain repair VM.')
74
+
c.argument('repair_group_name', help='Name for new or existing resource group that will contain repair VM.')
0 commit comments