Some VM sizes contain a temporary disk. The temporary disk provides short-term storage for applications and processes. Data on the temporary disk may be lost during a maintenance event, when you redeploy a VM or change the size.
On Azure Linux VMs, the temporary disk is usually /dev/sdb and on Windows VMs the temporary disk is D drive by default. You identify it by a DATALOSS_WARNING_README.txt file on the temp disk. The temporary disk is not encrypted by server side encryption unless you enable encryption at host. For more information see this Microsoft Link.
You can move from a VM size with a temporary disk to one without and vice versa.
Some examples of VM sizes with temporary disks include (where # = vCPU number):
D# v2
B#ms
Some examples of VM sizes without temporary disks include (where # = vCPU number):
You may get a Windows error such as:
Follow these steps to change a temp-disk size --> no-temp-disk size.
Follow these steps to change a no-temp-disk size --> temp-disk size.
Sometimes the VM size you want to change to is not available. There can be a resolution to this. First check if you can resize in Azure portal just in case the size is not being pulled from Azure to the MCIT portal correctly. If you still cannot change to the size you want and you have confirmed that size is available in the Azure datacenter please contact MCIT senior support for help with this.
If you are confident the basic process is to snapshot, create disk, create new vm with new size, delete old VM and unmap it, clean up DNS, map new VM in the MCIT portal then fix the pagefile.