Reputation: 31
In which folder (or location) should the data be stored in azure VM so that the data is not lost when VM is stopped(deallocated).
Upvotes: 2
Views: 634
Reputation: 366
If you are using a Windows VM, you can store data on the C: drive without losing data when the VM is deallocated. If you are looking to store a large amount of data, more than is available on the C: drive, you should look at creating an additional disk and attaching that to the VM.
On some VMs there is a temporary/ephemeral drive D: that will get deleted and reprovisioned when you stop(deallocate)/start or redeploy a VM. Do not use this drive for any data that you need to store permanently.
Upvotes: 2