How to revive a purged virtual machine?

John Eagar 0 Reputation points
2024-10-09T18:06:41.46+00:00

I have an environment that I was working in that was purged by policy after 30 days. How can I reclaim this environment?

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

1 answer

Sort by: Most helpful
  1. Sai Krishna Katakam 710 Reputation points Microsoft Vendor
    2024-10-10T08:03:51.4933333+00:00

    Hi John Eagar,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    If your environment was purged by policy after 30 days, unfortunately, it means that the virtual machine (VM) and its associated data have been permanently deleted and cannot be directly recovered. However, there are a few steps you can take to potentially restore your environment:

    • Verify if there are any backups available for the VM. If you have been using Azure Backup or any other backup solution, you can restore the VM from the latest backup.
    • If soft delete was enabled for your Azure resources, you might be able to recover the VM. Soft delete allows recovery of deleted resources within a specified retention period. For more information, refer to the Recover deleted artifacts with soft delete policy in Azure Container Registry (Preview).
    • If no backups are available and soft delete was not enabled, you will need to recreate the environment by setting up a new VM and reconfiguring it as needed.
    • To prevent this from happening again, review your resource management and deletion policies. You can read more about managing resources using Azure Policy here: Azure Policy Overview

    For detailed guidance, please refer to the official Microsoft documentation:
    How to restore Azure VM data in Azure portal
    Back up Azure VMs in a Recovery Services vault
    Create a VM from a specialized disk by using PowerShell

    If you have any further queries, do let us know. If the comment is helpful, please click "Accept Answer" and "Upvote".

    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.