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/azext_vm_repair/_help.py
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@
7
7
8
8
helps['vm repair'] ="""
9
9
type: group
10
-
short-summary: Auto repair commands to fix VMs.
10
+
short-summary: Setup repair VMs with copied source OS Disk to resolve issues.
11
11
long-summary: |
12
-
VM repair command will enable Azure users to self-repair non-bootable VMs by copying the source VM's OS disk and attaching it to a newly created repair VM.
12
+
When your VM is non-bootable, VM Repair enables users to setup new repair VMs and copy over the source VM's OS Disk and attach it as a data disk. Then the user can run their own scripts or use [pre-built](https://github.com/Azure/repair-script-library) ones to fix the disk.
13
13
"""
14
14
15
15
helps['vm repair create'] ="""
@@ -25,6 +25,18 @@
25
25
- name: Create a repair VM of a specific distro or a specific URN could also be provided
26
26
text: >
27
27
az vm repair create -g MyResourceGroup -n myVM --distro 'rhel7|sles12|ubuntu20|centos6|oracle8|sles15'
28
+
- name: Create a repair VM with a Private IP address without any pop up asking for confirmation.
29
+
text: >
30
+
az vm repair create -g MyResourceGroup -n myVM --yes --repair-username <username> --repair-password <password>
31
+
- name: Create a repair VM with a Public IP address without any user input.
32
+
text: >
33
+
az vm repair create -g MyResourceGroup -n myVM --associate-public-ip --yes --repair-username <username> --repair-password <password>
34
+
- name: Create a repair VM with Standard Security type.
35
+
text: >
36
+
az vm repair create -g MyResourceGroup -n myVM --yes --repair-username <username> --repair-password <password> --disable-trusted-launch
37
+
- name: Create a repair VM from a source VM with an encrypted disk. The repair VM is created with the data disk unencrypted and accessible.
38
+
text: >
39
+
az vm repair create -g MyResourceGroup -n myVM --yes --repair-username <username> --repair-password <password> --unlock-encrypted-vm --encrypt-recovery-key <key>
Copy file name to clipboardExpand all lines: src/vm-repair/azext_vm_repair/_params.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ def load_arguments(self, _):
29
29
c.argument('copy_disk_name', help='Name of OS disk copy.')
30
30
c.argument('repair_group_name', help='Name for new or existing resource group that will contain repair VM.')
31
31
c.argument('unlock_encrypted_vm', help='Option to auto-unlock encrypted VMs using current subscription auth.')
32
-
c.argument('encrypt_recovery_key', help='Option to auto-unlock encrypted VMs using provided recovery password.')
32
+
c.argument('encrypt_recovery_key', help='Option to auto-unlock encrypted VMs using provided recovery password. The \'--unlock-encrypted-vm\' parameter must be used to use this parameter.')
0 commit comments