Azure virtual machine accidently got deleted? can i recover it?

Sandip Sabale 0 Reputation points
2023-12-12T13:03:37.08+00:00

Azure virtual machine accidently got deleted? can i recover it?

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

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 123.7K Reputation points MVP Volunteer Moderator
    2023-12-12T13:19:42.5366667+00:00

    Hi @Sandip Sabale ,

    if you have a backup, for instances created with Azure Backup, it's possible to restore the deleted Azure VM.

    Otherwise: No, if the VM was deleted without any backup the VM is "gone".

    There is a small chance: Depending if VM was deleted without deleting the disk(s) it's possible to create a new VM using the existing disk(s). You can check this is in the Azure Portal navigating to "Disks" and take a look on the list of existing disks. By default the name of the VM is part of the disk's name. More details you can find here: Create a VM from existing disk


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards

    Andreas Baumgarten

    0 comments No comments

  2. Pranathi Panyam_MSFT 1,066 Reputation points Microsoft Employee
    2023-12-12T17:15:51.3266667+00:00

    Hello Sandip Sabale, Welcome to Microsoft Q&A, thank you for posting your here!

    If you have deleted the VM along with OS disk, then you would not be able to restore the deleted VM,
    270663-image.png

    If you have only deleted VM without selecting the OS Disk, then you can restore the deleted VM. Please follow the below steps to Create a VM from a disk from Azure Portal.

    • From the Azure portal, on the left menu, select All services.
    • In the All services search box, enter disks and then select Disks to display the list of available disks.
    • Select the disk which was previously associated to the deleted VM. The Disk page for that disk opens.
    • In the Overview page, ensure that DISK STATE is listed as Unattached.
    • In the menu at the top of the page, select Create VM.
    • On the Basics page for the new VM, enter a Virtual machine name and either select an existing Resource group or create a new one.
    • For Size, select Change size to access the Size page.
    • Select a VM size row and then choose Select.
    • On the Disks page, you may notice that the "OS Disk Type" cannot be changed. This preselected value is configured at the point of Snapshot or VHD creation and will carry over to the new VM. If you need to modify disk type take a new snapshot from an existing VM or disk.
    • On the Networking page, you can either let the portal create all new resources or you can select an existing Virtual network and Network security group. The portal always creates a new network interface and public IP address for the new VM.
    • On the Management page, make any changes to the monitoring options.
    • On the Guest config page, add any extensions as needed.
    • When you're done, select Review + create.
    • If the VM configuration passes validation, select Create to start the deployment.

    Hope this helps!
    Kindly let us know if the above helps or you need further assistance on this issue.


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    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.