Skip to content

Commit 5a7d23c

Browse files
Update create-upload-centos.md
1 parent cc9bee9 commit 5a7d23c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/virtual-machines/linux/create-upload-centos.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,13 @@ This article assumes that you've already installed a CentOS (or similar derivati
217217
218218
16. Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure:
219219
220+
```bash
221+
sudo waagent -force -deprovision+user
222+
sudo export HISTSIZE=0
223+
```
220224
> [!NOTE]
221225
> If you are migrating a specific virtual machine and do not wish to create a generalized image, skip the deprovision step.
222226
223-
```bash
224-
sudo waagent -force -deprovision+user
225-
sudo export HISTSIZE=0
226-
```
227227
228228
17. Click **Action -> Shut Down** in Hyper-V Manager. Your Linux VHD is now ready to be [uploaded to Azure](./upload-vhd.md#option-1-upload-a-vhd).
229229

0 commit comments

Comments
 (0)