The Windows Azure Linux Agent can automatically configure swap space
using the local resource disk that is attached to the VM after
provisioning on Azure. Modify the following parameters in
/etc/waagent.conf appropriately:

ResourceDisk.Format=yResourceDisk.Filesystem=ext4ResourceDisk.MountPoint=/mnt/resourceResourceDisk.EnableSwap=yResourceDisk.SwapSizeMB=2048## NOTE: set this to whatever you need it to be.