Skip to content

Commit 3277f20

Browse files
Merge pull request #209000 from mattmcinnes/patch-6
Update vmaccess.md
2 parents 97fa309 + 7cc4849 commit 3277f20

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

articles/virtual-machines/extensions/vmaccess.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ ms.author: gabsta
88
author: MsGabsta
99
ms.collection: linux
1010
ms.date: 05/10/2018
11-
11+
ms.custom: GGAL-freshness822
1212
---
13+
1314
# Manage administrative users, SSH, and check or repair disks on Linux VMs using the VMAccess Extension with the Azure CLI
1415
## Overview
1516
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/
103104
### Reset user access
104105
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.
105106

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:
107108

108109
```json
109110
{
@@ -124,7 +125,7 @@ az vm extension set \
124125
--protected-settings update_ssh_key.json
125126
```
126127

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:
128129

129130
```json
130131
{
@@ -146,7 +147,7 @@ az vm extension set \
146147
```
147148

148149
### 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:
150151

151152
```json
152153
{
@@ -190,7 +191,7 @@ az vm extension set \
190191
--protected-settings create_new_user.json
191192
```
192193

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:
194195

195196
```json
196197
{
@@ -213,7 +214,7 @@ az vm extension set \
213214
### Check or repair the disk
214215
Using VMAccess you can also check and repair a disk that you added to the Linux VM.
215216

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:
217218

218219
```json
219220
{

0 commit comments

Comments
 (0)