Stopped Virtual Machine

Neerav Agrawal 50 Reputation points
2023-09-26T16:23:02.6966667+00:00

I stopped around 80 virtual machines which started showing in (stop/deallocated) state.

Now all those machines seems to be deleted automatically.

Is this a expected behaviour that the machines gets deleted after stopping those?

Can those be restored anyway if needed in future ?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,032 questions
{count} votes

Accepted answer
  1. kobulloc-MSFT 26,811 Reputation points Microsoft Employee Moderator
    2023-09-26T18:25:05.1866667+00:00

    Hello, @Neerav Agrawal !

    Do VMs get deleted when you stop/deallocate them?

    What did you use to stop the VMs (script, etc.)? Deallocating VMs should leave them in the deallocated state, not deleted:

    User's image

    Generally there isn't an option to restore deleted VMs unless you've already configured backup and restore. If that has been configured, you can use the following documentation to restore the VMs:

    https://learn.microsoft.com/en-us/azure/backup/backup-azure-arm-restore-vms

    Soft delete is a feature that protects deleted backup data for VMs, however the VMs must have backups.

    If not, there is the possibility of restoring the VM from an OS disk if that still remains.

    If a VM has been deleted without restore, backups, or a remaining OS disk there's very little that can be done. If it's production critical let us know and we'll see if there's anything that can be done on the backend however this is very unlikely to be successful.


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers. If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.