Skip to content

Commit b05ced8

Browse files
Merge pull request #233352 from msaenzbosupport/patch-8
[Doc-A-thon]Updating code block and add sudo
2 parents 6e34673 + ad223c1 commit b05ced8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/virtual-machines/automatic-vm-guest-patching.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,12 @@ Automatic updates are disabled in most scenarios, and patch installation is done
275275
- For Ubuntu VMs, the default automatic updates are disabled automatically when Automatic VM Guest Patching completes enablement.
276276
- For RHEL, automatic updates need to be manually disabled. Execute:
277277

278-
```
279-
systemctl stop packagekit
278+
```bash
279+
sudo systemctl stop packagekit
280280
```
281281

282-
```
283-
systemctl mask packagekit
282+
```bash
283+
sudo systemctl mask packagekit
284284
```
285285

286286
To verify whether automatic VM guest patching has completed and the patching extension is installed on the VM, you can review the VM's instance view. If the enablement process is complete, the extension will be installed and the assessment results for the VM will be available under `patchStatus`. The VM's instance view can be accessed through multiple ways as described below.

0 commit comments

Comments
 (0)