Adjust thw swap size in VM hosted on Azure

Procedures

  • edit the configuration
$ sudo vim /etc/waagent.conf
  • Set the configuration
# set the flag
ResourceDisk.Format=y
ResourceDisk.EnableSwap=y

# set the size
ResourceDisk.SwapSizeMB=xx
  • Start the configuation
$ sudo service walinuxagent restart

results matching ""

    No results matching ""