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: articles/virtual-machines/extensions/vmaccess.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,9 @@ ms.author: gabsta
8
8
author: MsGabsta
9
9
ms.collection: linux
10
10
ms.date: 05/10/2018
11
-
11
+
ms.custom: GGAL-freshness822
12
12
---
13
+
13
14
# Manage administrative users, SSH, and check or repair disks on Linux VMs using the VMAccess Extension with the Azure CLI
14
15
## Overview
15
16
The disk on your Linux VM is showing errors. You somehow reset the root password for your Linux VM or accidentally deleted your SSH private key. If that happened back in the days of the datacenter, you would need to drive there and then open the KVM to get at the server console. Think of the Azure VMAccess extension as that KVM switch that allows you to access the console to reset access to Linux or perform disk level maintenance.
@@ -103,7 +104,7 @@ The following examples use raw JSON files. Use [az vm extension set](/cli/azure/
103
104
### Reset user access
104
105
If you have lost access to root on your Linux VM, you can launch a VMAccess script to update a user's SSH key or password.
105
106
106
-
To update the SSH public key of a user, create a file named `update_ssh_key.json` and add settings in the following format. Substitute your own values for the `username` and `ssh_key`parameters:
107
+
To update the SSH public key of a user, create a file named `update_ssh_key.json` and add settings in the following format. Replace `username` and `ssh_key`with your own information:
107
108
108
109
```json
109
110
{
@@ -124,7 +125,7 @@ az vm extension set \
124
125
--protected-settings update_ssh_key.json
125
126
```
126
127
127
-
To reset a user password, create a file named `reset_user_password.json` and add settings in the following format. Substitute your own values for the `username` and `password`parameters:
128
+
To reset a user password, create a file named `reset_user_password.json` and add settings in the following format. Replace `username` and `password`with your own information:
128
129
129
130
```json
130
131
{
@@ -146,7 +147,7 @@ az vm extension set \
146
147
```
147
148
148
149
### Restart SSH
149
-
To restart the SSH daemon and reset the SSH configuration to default values, create a file named `reset_sshd.json`. Add the following content:
150
+
To restart the SSH daemon and reset the SSH configuration to default values, create a file named `reset_sshd.json`. Add the following text:
150
151
151
152
```json
152
153
{
@@ -190,7 +191,7 @@ az vm extension set \
190
191
--protected-settings create_new_user.json
191
192
```
192
193
193
-
To delete a user, create a file named `delete_user.json` and add the following content. Substitute your own value for the `remove_user`parameter:
194
+
To delete a user, create a file named `delete_user.json` and add the following content. Change the data for `remove_user`to the user you're trying to delete:
194
195
195
196
```json
196
197
{
@@ -213,7 +214,7 @@ az vm extension set \
213
214
### Check or repair the disk
214
215
Using VMAccess you can also check and repair a disk that you added to the Linux VM.
215
216
216
-
To check and then repair the disk, create a file named `disk_check_repair.json` and add settings in the following format. Substitute your own value for the name of `repair_disk`:
217
+
To check and then repair the disk, create a file named `disk_check_repair.json` and add settings in the following format. Change the data for `repair_disk` to the disk you're trying to repair:
0 commit comments