Which local drive should I use on my Azure Extended Cloud Service virtual machine to store data?

Justin Mierzejewski 0 Reputation points
2025-04-25T14:16:08.2966667+00:00

I see multiple local drives on my Azure Extended Cloud Service virtual machine.

User's image

Sometimes content I put on the D: Drive is deleted. I always understood "Temporary Storage" to be unreliable, but it seeems like the C: Drive has been retaining data. My app needs to access local data to run. Which local disk can I dependably use to store local data?

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
749 questions
{count} votes

1 answer

Sort by: Most helpful
  1. anashetty 3,165 Reputation points Microsoft External Staff
    2025-04-25T18:03:28.58+00:00

    Hi Justin Mierzejewski,

    The drives shown in the image:

    C: - Temporary Storage - This is ephemeral storage. This is actually the least reliable location despite appearing to retain data. Its content is lost during VM reboots, restarts, or re-deployments.

    D: - Windows - This is your system/OS drive in Cloud Services. This is typically the temporary drive in Azure VMs It's also unreliable for persistent storage. Do not use this drive for your own app data

    E: - Local Disk - This appears to be an additional attached disk and is a persistent drive backed by your uploaded service package or attached data disk. This is the safest location to use for storing application data that needs to persist across reboots and re-deployments.

    For reliable local storage that your application can depend on use the E: Drive. Since it's labeled "Local Disk" and isn't marked as temporary, this is your best one for persistent storage among the shown options.
    For critical data consider using Azure Blob Storage or Azure Files for data that must never be lost, as these are cloud-backed storage solutions.

    If you have any further queries, let me know. If the information is helpful, please click on Upvote and Accept Answer on it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.