Recover data from from temporary disk

Sanket Tarun Shah 6 Reputation points
2022-07-13T04:44:24.833+00:00

I have a Windows VM running apps on B1MS instance type. Sometime back, one of the developer decided to use Temporary disk and stored transactional data in it. This disk got refreshed / all contents got deleted two days back.

What's the way to recover this deleted data?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,586 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
603 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 56,681 Reputation points
    2022-07-13T05:08:32.43+00:00

    Unfortunately temporary disk data cannot be recovered once it has been wiped.

    An answer from ChristopherW-MSFT on another similar post.

    Please keep in mind that Stopping, Resizing, or Restarting a Virtual Machine can clear the Temporary Disk. Temporary Disks should only be used for temporary data collection, or storage for brief transmission, and paging - Knowing that the data can be cleared at any moment. https://learn.microsoft.com/en-us/azure/virtual-machines/managed-disks-overview#temporary-disk
    If your Virtual Machine isn't starting and you just want to recover the Disks, then deleting the Virtual Machine does NOT delete the Disks, they will stay in your Resource Group. Though you can also create 'Snapshots' of them to create a backup Disk out of.

    Once you have these Disks, you can attach them to a new Virtual Machine as Data Disks to recover the data - You may want to attach the Backup OS Disk after the VM boots, or this can cause the VM to stall as you have no easy way to choose boot drives.

    Attach a Managed Disk: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/attach-managed-disk-portal

    Cited from: https://learn.microsoft.com/en-us/answers/questions/243662/how-can-i-get-my-data-stored-in-the-temporary-disk.html

    1 person found this answer helpful.
    0 comments No comments