vmss deleted associated vm

Kiran Pande 0 Reputation points
2025-11-19T15:22:52.63+00:00

I attached a vmss to a vm and then this process deleted the vm it is attached to. Now our application and databsae on the vm is lost. We need to recover it.

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
{count} votes

3 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 17,401 Reputation points MVP Volunteer Moderator
    2025-11-20T06:47:01.1566667+00:00

    Hello @Kiran Pande

    The recovery procedure depends on whether the managed disks were kept when the VM was deleted. If the disks were kept, locate the unattached disks in the Azure portal and create a new VM, attaching the existing OS and data disks. If the disks were deleted, check Azure Backup vaults, application/database backups, and snapshot policies for potential recovery options.


    If the Answer is helpful, please click Accept Answer and Up-Vote, so that it can help others in the community looking for help on similar topics.

    0 comments No comments

  2. Kiran Pande 0 Reputation points
    2025-11-20T09:32:24.75+00:00

    Got the old data disk, but can't locate OS disk. nothing in backup vault etc.

    0 comments No comments

  3. Manish Deshpande 1,485 Reputation points Microsoft External Staff Moderator
    2025-12-15T02:54:27.1433333+00:00

    Hello @Kiran Pande

    I’m sorry this happened losing an application VM is stressful. Below is a clear recovery plan you can follow.

    Check the Activity Log in the VM’s resource group to confirm the Delete operation and its initiator (portal, policy, script, VMSS action).

    Identify your backup source:

    • Azure Backup / Recovery Services vault protection - Proceed with vault-based restore.
    • ADE-encrypted disks - Use the encrypted VM restore workflow (disk-only restore).
    • Need only a subset of data (e.g., DB files)? Use file/folder recovery from VM backup.

    Restore the entire VM from Azure Backup

    • In Azure portal, open Recovery Services vault → Backup items → Azure Virtual Machine → select your VM.
    • Choose a Recovery point → Restore → Restore VM.
    • Provide target VM name, resource group, network, and region (must match vault region).
    • Start the job and monitor Backup jobs; when it completes, validate boot, RDP/SSH, app and DB services.

    Restore from Disks

    • In the vault, select the VM backup item → pick a Recovery point → choose Restore Type: Restore disks.
    • Select a staging resource group in the same region; start the Recover Disks job to materialize managed disks.

    After job completion:

    • Option 1: Create new VM from the restored OS disk (via Create VM or ARM template).
    • Option 2: OS Disk Swap on an existing VM (stop VM → detach old OS disk → attach restored OS disk → start VM).

    Attach the restored data disks (if any) and validate services.

    To proceed with restoring your application and database, could you please confirm if the deleted VM was protected by Azure Backup in a Recovery Services vault.

    Here is the document you can refer to recover the VM.

    https://xtls-v4.hkg1.meaqua.org/en-us/azure/backup/backup-azure-arm-restore-vms#restore-options

    Next course

    We have contacted PG for support to determine whether the data can be recovered. Since the data has moved to the recycle queue, recovery is unfortunately not possible.

    Thanks,
    Manish Deshpande.

    0 comments No comments

Your answer

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