Skip to content

Commit 7ea0289

Browse files
Merge pull request #9932 from msaenzbosupport/patch-39
AB#7994: Add sudo to chmod command for swap script
2 parents f75ebdf + 3f9d8ac commit 7ea0289

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

support/azure/virtual-machines/linux/create-swap-file-linux-vm.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: Create a SWAP file for an Azure Linux VM
33
description: Describes how to create a SWAP file for an Azure Linux VM.
4-
ms.date: 09/15/2025
4+
ms.date: 10/22/2025
55
ms.service: azure-virtual-machines
6-
ms.custom: sap:VM Admin - Linux (Guest OS), linux-related-content
6+
ms.custom: sap:Assistance with disk operations, linux-related-content
77
ms.collection: linux
8-
ms.author: mabicca
9-
author: mabicca
10-
ms.reviewer: v-weizhu
8+
ms.author: jarrettr
9+
author: JarrettRenshaw
10+
ms.reviewer: mabicca
1111
---
1212

1313
# Create a SWAP partition for an Azure Linux VM
@@ -87,7 +87,7 @@ You can create a SWAP partition by using one of the following options.
8787
1. Make the script executable:
8888
8989
```bash
90-
chmod +x /var/lib/cloud/scripts/per-boot/swap.sh
90+
sudo chmod +x /var/lib/cloud/scripts/per-boot/swap.sh
9191
```
9292
9393
1. Stop and start the VM. Stopping and starting the VM is only necessary the first time after you create the SWAP file.

support/azure/virtual-machines/linux/toc.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
items:
12
- name: Welcome
23
href: welcome-virtual-machines-linux.yml
34

@@ -262,13 +263,13 @@
262263
href: convert-mbr-partition-to-gpt.md
263264
- name: VHD is not supported when you create a VM in Azure
264265
href: ../windows/vhd-not-supported-vm-azure.md?context=/troubleshoot/azure/virtual-machines/linux/context/context
266+
- name: Create a SWAP file
267+
href: create-swap-file-linux-vm.md
265268

266269
- name: Linux administration
267270
items:
268271
- name: Configure multiple NICs
269272
href: linux-vm-multiple-virtual-network-interfaces-configuration.md
270-
- name: Create a SWAP file
271-
href: create-swap-file-linux-vm.md
272273
- name: Maximum RAM memory of Linux VM
273274
href: max-linux-ram-limited-64-gb.md
274275
- name: Configure custom DNS servers

0 commit comments

Comments
 (0)