question

mimckitt avatar image
1 Vote"
mimckitt asked VineetKumarGupta-6574 commented

Azure Temp Drive for General Storage

Can I use the temporary disk (the D: drive by default) to store data?

Sourced from MSDN



azure-virtual-machinesazure-virtual-machines-scale-setazure-virtual-machines-storage
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

No Never ,If you will be reboot the VM data will be lost from temporary storage . This is given only for caching for OS Drive

0 Votes 0 ·
olufemiaMSFT avatar image
3 Votes"
olufemiaMSFT answered mimckitt edited

Welcome to the Microsoft Q&A (Preview) platform. Happy to answer your question.

Don’t use the temporary disk to store data. It is only temporary storage, so you would risk losing data that can’t be recovered. Data loss can occur when the virtual machine moves to a different host. Resizing a virtual machine, updating the host, or a hardware failure on the host are some of the reasons a virtual machine might move.
If you have an application that needs to use the D: drive letter, you can reassign drive letters so that the temporary disk uses something other than D:. For instructions, see Change the drive letter of the Windows temporary disk.

Sourced from MSDN


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

NicholasManolakos-6584 avatar image
0 Votes"
NicholasManolakos-6584 answered

You can create a new storage for the vm and use it for a data disk. You’ll have to go into the vm and mount the new disk. For the drive letter you can swap it out via looking for Disk Management settings. This way the disk will be permanent. Additionally you might want to back up the storage separately

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BalaC-3152 avatar image
0 Votes"
BalaC-3152 answered

If you use Temp Storage ( Windows D drive and Unix /mnt) after the reboot of the server data will be lost. It's better to assign one additional data disks and mount the drive inside the server.

So your data will be safe. Also temp storage will not be part of Azure Backup. So your data not possible to recover if you keep in temp storage.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SaurabhDhande-3613 avatar image
0 Votes"
SaurabhDhande-3613 answered

The D: drive in windows VMs is temporary storage drive and the drive itself contains a txt file basically a warning txt file stating 'data in the drive will be lost'. after reboot or shutdown on the VM.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

58214058 avatar image
0 Votes"
58214058 answered

@mimckitt - Temporary drive (D: drive) is non persistent drive used by Azure. If you have need to to use for temporary base you can use that. In some use cases like deploying some application binaries to, you can download package (zip) to temporary drive and extract to the actual application location (C: drive or F: drive). After few days, if VM gets moved to different host within Azure data center or MS pushes some updates to VM's the data in D: drive would get lost

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.