186k views
3 votes
What is the process to change the temporary drive in an Azure VM and us the D: for Persistent Data disks instead?

User Yvonnezoe
by
7.3k points

1 Answer

4 votes

Final answer:

To change the temporary drive in an Azure VM and use D: for Persistent Data disks, you need to stop the VM, add or configure a new persistent disk, start the VM, and then initialize, format, and assign the D: drive letter to the new disk.

Step-by-step explanation:

The process to change the temporary drive in an Azure VM and use the D: for Persistent Data disks instead involves several steps. By default, Azure VMs use the D: drive for temporary storage, but you might want to change this to use the D: drive for persistent storage.

  1. Login to your Azure Portal and navigate to your Virtual Machine.
  2. Stop the VM to dismount the temporary storage.
  3. Navigate to the Disks section of your VM settings.
  4. Add a new disk or edit the existing disk configuration to make the D: drive persistent. You may need to configure the new disk with required settings such as size, type, and host caching. Ensure that host caching is set to 'None' for data disks.
  5. After attaching the disk, start the VM again.
  6. Log in to your VM and initialize and format the disk through Disk Management or using PowerShell if not already done. Assign the drive letter D: to your new disk.
  7. Change the settings to direct your applications to use the D: drive for persistent storage, or move the required data to the D: drive.

It's essential to remember that changing the temporary storage location may cause data loss on the previous temporary drive, so back up any necessary data before starting the process.

User Jens Munk
by
7.7k points