Azure Tenant Activation / Provisioning How to Restore Azure VM from Snapshot
Why You’d Need to Restore an Azure VM From a Snapshot (And Why It’s Not Always as Simple as It Sounds)
Restoring an Azure VM from a snapshot is one of those tasks that feels simultaneously straightforward and mysterious. The straightforward part: snapshots store point-in-time copies of managed disks. The mysterious part: what you call a “restore” depends on what you’re trying to achieve—rolling back a whole VM, recovering a data disk, or resurrecting a single stubborn volume that refuses to behave.
Also, snapshots don’t directly “become” a VM by themselves. Think of a snapshot like a time-stamped photo. You can admire it, but you still need to print it into something usable—like turning it into a managed disk, then attaching that disk to a VM. In Azure terms, you’ll typically create a new managed disk from the snapshot, and then create or replace the VM’s disk(s) with that new disk.
Azure Tenant Activation / Provisioning This article covers the most common scenario: you have a snapshot of a VM’s OS disk (and sometimes additional data disks), and you want to restore a VM to the state captured at the snapshot time. We’ll also touch on the “gotchas,” including the big one: snapshots and disks are not the same thing, and Azure won’t let you pretend they are.
Before You Click Anything: What You Need to Know
Snapshot vs. Managed Disk vs. VM
Let’s untangle the terminology. Azure has several objects that sound like they’re related in the same way that cousins are related—yes, they share DNA, but they also have their own quirks.
- Snapshot: A point-in-time copy of a managed disk. It’s used for backups, rollback, and creating new disks later.
- Managed Disk: The actual durable disk resource that can be attached to a VM.
- VM: The compute instance that uses one or more managed disks (OS disk and potentially data disks).
So when you “restore a VM from a snapshot,” Azure typically wants you to create a new managed disk from the snapshot, then use that managed disk as the OS disk (and/or data disks) for a VM.
Check Your Snapshot Details (Because Past You Was Busy)
Before you start, gather this information:
- The resource group that contains the snapshot(s)
- The snapshot name(s)
- Whether the snapshot is of the OS disk or a data disk
- The target region (snapshots must generally be used within the same region where the managed disk is created)
- The VM size and OS type (Windows or Linux), plus any architecture specifics (like Gen1/Gen2 isn’t exactly a universal requirement for all scenarios, but you should match what the VM expects)
- Whether the snapshot is from a managed disk (most are, but it’s worth confirming)
If you’re missing details, don’t panic. Azure resources are usually labeled well enough to reconstruct the story. If not, try viewing the snapshot properties and look for the “Source” disk information.
Prerequisites: Access, Permissions, and Calm Breathing
To restore a VM from a snapshot, you typically need permissions to:
- Read snapshot resources
- Create new managed disks from snapshots
- Create (or update) VMs
- Attach disks to VMs
- Manage networking (VNet, subnet, NIC, public IP if applicable)
If you’re lacking permissions, Azure will not “gently suggest” a fix. It will simply block you with an error message that reads like it was written by a very polite bouncer at a club: “No.”
Also, consider taking a moment to decide your restoration strategy:
- Restore into a new VM: Safer for testing. You keep the current VM intact until you confirm everything works.
- Replace disks on an existing VM: Riskier and more disruptive. Might require shutting down the VM and carefully swapping disks.
We’ll describe both approaches, but the “new VM” method is usually the easiest way to avoid accidentally deleting your current work.
Step-by-Step: Restore a VM by Creating a New Managed Disk From the Snapshot
This is the core mechanic. Every reasonable “restore VM from snapshot” workflow ends up here: creating a managed disk from your snapshot.
Step 1: Decide Which Snapshot(s) to Restore
Many real VMs have more than one disk. For example, an Azure VM commonly has:
- OS disk: Contains the operating system, boot files, and generally configuration like fstab, services, users, and installed software.
- Data disks: Attached volumes for application data, logs, databases, etc.
If you only restore the OS disk, your VM will boot with the OS as it existed at the snapshot time, but your data disks may still reflect the current state. That might be what you want, or it might be a recipe for “why does my database think it’s in the wrong timeline?”
For a true rollback, you often restore all relevant disks captured consistently at (or near) the snapshot time. If your snapshots are taken at different times for different disks, you may need to understand the consistency implications.
Step 2: Create a Managed Disk from the Snapshot (OS Disk Example)
In the Azure Portal:
- Go to the Snapshot resource.
- Open the snapshot details page.
- Look for an option like Create disk or Create managed disk.
- Choose:
- Subscription (if applicable)
- Resource group (you can use the same or a new one)
- Disk name (give it an unmistakable name, like “vm-osdisk-restore-2026-05-01”)
- Location (usually matches the snapshot)
- Storage type (based on your performance needs; your snapshot might implicitly be tied to certain characteristics, but you still choose a storage tier/type when creating a disk)
- Click Review + create, then Create.
Azure will create a new managed disk resource. This disk is essentially “the snapshot printed into a usable disk.”
What About Data Disks?
You repeat the same disk creation process for each data disk snapshot you plan to restore. Then, when creating or updating the VM, attach these disks in the same order/roles (where possible) so the OS finds them correctly.
Be extra careful with Linux device mapping (like /dev/sdc, /dev/sdd, etc.) because those can shift if disk order changes. On Windows, drive letters might behave differently unless the system already has consistent mappings or configuration.
Step 3: Create a New VM Using the Restored OS Disk
Now comes the part where your snapshot starts paying rent.
You have two typical options:
- Option A: Create a brand new VM using the restored disk as the OS disk. This is recommended for most scenarios.
- Option B: Replace the OS disk on the original VM. This can be done, but you need to be careful about the VM’s state, networking, and disk attachments.
Option A (Recommended): Create a New VM
In the Azure Portal:
- Go to Virtual machines and click Create.
- Choose Resource group, Region, and a name like “restore-vm-snapshot-01”.
- When it prompts for an image or OS configuration, look for advanced options. Depending on your portal experience, you may need to select a method like Use a custom managed disk.
- Set the OS disk to the managed disk you created from the snapshot.
- Choose VM size. Use a size compatible with the disk’s OS expectations. In general, any size that can run the OS is fine, but matching your original VM size reduces surprise.
- Configure networking:
- Virtual Network and Subnet
- NIC and optional Public IP
- Security rules (NSG) so you can actually connect
- Authentication:
- Azure Tenant Activation / Provisioning For Linux: SSH public key or password (if enabled and supported)
- For Windows: username/password (or whatever mechanism is consistent with your setup)
- Proceed through the rest of the wizard and create the VM.
At this point, Azure should boot the OS from the restored disk.
But Wait: Authentication Can Be Tricky
If you’re restoring an existing OS disk, the credentials and SSH keys inside that disk reflect the snapshot time. If Azure tries to apply a new password or SSH key at provisioning time, it might overwrite what’s inside the disk depending on configuration.
For many Linux VMs, provisioning uses mechanisms like the Azure agent and the “custom data” or “SSH keys” at boot time. If your snapshot includes a system state that expects existing keys, you should verify how Azure handles key injection for managed-disk based creation.
Practical advice: after you attach the restored disk and boot, test connectivity quickly. If you can’t log in, you may need to use OS-level recovery steps (like mounting the OS disk and fixing authorized_keys), or ensure the VM creation workflow doesn’t conflict with the OS state.
Step 4: Attach Restored Data Disks (If You’re Restoring Them)
If your original VM had data disks, attach the managed disks you created from data snapshots.
In the VM:
- Open the VM in the Azure Portal.
- Azure Tenant Activation / Provisioning Go to Disks or the section showing attached disks.
- Select Attach existing disk.
- Pick the managed disk created from the snapshot.
- Choose appropriate LUN values if the UI allows it. LUN ordering can matter for how the OS identifies disks.
- Repeat for each data disk.
- Save changes and ensure the VM is in a state that supports disk attachment (sometimes you may need to deallocate).
After boot, confirm the OS recognizes the disks:
- Linux: check lsblk, blkid, and whether partitions are mounted.
- Windows: check Disk Management, DiskPart, and drive letters.
Step 5: Validate the Restore (The Part Everyone Hopes Works Instantly)
Validation is where you earn your coffee. Your goal is to confirm that the VM boots and that key services and data are consistent with the snapshot.
Basic Health Checks
- VM is running and reachable over the network
- OS boot completes without disk errors
- Required services are running (web server, database, app services)
- Storage volumes are mounted/online
Application-Level Checks
Snapshot restoration can successfully boot the OS but still leave your application “thinking it’s in 2026,” especially if your app depends on data files that were not restored or if other components (like external services) have drifted.
So check the application logs, verify configuration files, and confirm that your app reads the expected data. If you restored both OS and data disks, you should see behavior closer to what existed at snapshot time.
Alternative Approach: Replace the OS Disk on the Existing VM
This method is for when you really want the original VM name and you’re comfortable with the idea that you might spend an evening becoming emotionally attached to Azure’s disk attachment rules.
There are two main steps: deallocate the VM (usually required), then detach/replace the OS disk with the new managed disk created from the snapshot.
Step 1: Deallocate the VM
In the Azure Portal:
- Open the VM
- Click Stop and ensure it reaches a deallocated state (not just “stopped” in a way that still holds resources).
Azure generally requires deallocation to modify disk assignments safely.
Step 2: Replace the OS Disk
Look for options related to:
- Disks
- OS disk
- Update or Replace
Choose the restored managed disk as the new OS disk.
Be careful: switching OS disks can change how the VM behaves with respect to drivers, system configuration, and network configuration (especially if the NIC and drivers are tied to the OS identity at snapshot time).
Step 3: Start the VM and Validate
After replacement, start the VM and perform the validation steps mentioned earlier.
If something goes wrong, you should have a rollback plan—like having recorded the old OS disk before you replaced it. Snapshots are great, but so is humility and good documentation.
Handling Special Cases and Common Pitfalls
Pitfall 1: You Restored the OS Snapshot but Forgot Data Disks
This is the classic “it boots but the app is haunted” scenario. The OS comes back to snapshot time, but data disks remain in a later state. The application might crash due to schema mismatch or stale configuration.
Fix: restore data disks too, or ensure your application handles the mixed timeline gracefully. If your snapshot process included consistency steps (like application-aware backups), even better.
Pitfall 2: Disk Size or LUN/Mapping Differences
If you created managed disks from snapshots with different sizes than the original disks (usually snapshots preserve size, but sometimes you may encounter mismatch scenarios), the OS might not see partitions as expected.
Also, disk mapping matters:
- Azure Tenant Activation / Provisioning Linux device names might change
- Azure Tenant Activation / Provisioning Mount points might not line up with fstab
- Windows drive letters might shift
Fix: verify device names and mounts after restore, and update config accordingly.
Azure Tenant Activation / Provisioning Pitfall 3: Authentication/SSH Key Confusion
When building a VM from a restored OS disk, you must ensure you can log in. If the snapshot was taken before certain updates (like SSH key changes), your current access method may not work.
Fix: after boot, confirm login. If locked out, use disk mounting or recovery tools to restore authorized access.
Pitfall 4: You Restore Only One Snapshot Taken at a Different Time
If you take snapshots at different times for different disks, you get a Frankenstate. It might be totally fine, or it might cause subtle corruption or inconsistent reads.
Fix: if you need a coherent rollback, take coordinated snapshots. In production, consider application-consistent backup strategies.
Pitfall 5: The VM Doesn’t Boot
When a VM fails to boot after restoring a snapshot disk, common causes include:
- Wrong snapshot/disk attached as OS disk
- Incompatible VM generation assumptions (less common if you used the same original disk/OS)
- Damaged snapshot or incomplete snapshot
- Azure Tenant Activation / Provisioning Attempting to boot a disk in a region or configuration that Azure doesn’t support for that disk type
Azure Tenant Activation / Provisioning Fix: check OS boot diagnostics, ensure you attached the correct managed disk, and confirm snapshot creation status. If you have a second snapshot, test with it to isolate whether the snapshot itself is the culprit.
Troubleshooting Checklist (Print This in Your Mind)
When restore goes sideways, work through this sequence:
- Confirm disk origin: Are you sure the managed disk was created from the correct snapshot?
- Confirm OS vs data: Is the restored managed disk actually the OS disk?
- Confirm VM configuration: Is the VM size/region consistent enough for the restored disk?
- Check NIC and networking: Can you reach the VM? Are NSG rules correct?
- Inspect boot diagnostics: Look for OS boot errors or disk mount failures.
- Validate disks inside OS: For Linux, lsblk and mount checks; for Windows, Disk Management and Event Logs.
- Confirm application consistency: If the OS looks right but the app is broken, you may have restored inconsistent data.
Best Practices for Future You (So You Don’t Need to “Restore in Anger”)
Restoring from snapshots is like having a fire extinguisher. It’s great to have, but you also want to prevent the fire in the first place.
Use Application-Aware Snapshots When Possible
If you run databases or apps that need consistency, consider tools or backup options that ensure snapshots represent a consistent state. Without this, you can end up with disks that boot but contain in-flight transactions.
Tag Your Snapshots and Disks
When you create a managed disk from a snapshot, name it clearly and tag it. Future you will search and bless past you for being organized.
Good naming conventions include:
- Date and time
- VM name
- Disk role (OS or which data disk)
Keep a Recovery Worksheet
At minimum, record:
- Original VM name, resource group, and region
- Which snapshots correspond to OS and each data disk
- Any special networking or security configuration
Documentation reduces downtime and keeps you from doing interpretive archaeology in Azure Resource Explorer at 2 a.m.
Quick Example Workflow (Put It All Together)
Here’s a compact end-to-end sequence for a typical OS restore:
- Identify the OS disk snapshot for the time you want to revert to.
- Create a new managed disk from that snapshot.
- Create a new VM in the same region.
- Select the restored managed disk as the VM’s OS disk (custom managed disk flow).
- Attach restored data disks (if you have their snapshots).
- Start the VM and confirm it boots successfully.
- Test login, mount status, and core application services.
If everything checks out, you can optionally replace the original VM’s OS disk or cut over traffic to the restored VM.
Frequently Asked Questions
Can I restore a VM directly from a snapshot without creating a new disk?
Usually, no. Snapshots are used to create managed disks. Then you attach those disks to a VM. Azure expects you to “promote” the snapshot into a disk resource before it can boot.
Will my restored VM have the same IP address?
That depends on whether you re-create networking and whether you reuse the same NIC and public IP resources. If you create a new VM with a new NIC, you likely get a new IP. If you reuse existing networking resources, you may preserve the IPs.
Do I need to restore both OS and data disks?
For a full rollback to a consistent point, yes, you should restore all relevant disks taken at the same time. If you restore only the OS, the app may not match the data state.
What if I restored a snapshot but now the app configuration seems wrong?
That’s expected if configuration changed after the snapshot. The OS and configuration reflect the snapshot time, while external dependencies or data might not. Restore the correct disks and validate the app timeline.
Conclusion: Your VM’s Comeback Plan, Now With Fewer Mysteries
Restoring an Azure VM from a snapshot is less “black magic” and more “disk logistics.” Once you understand that snapshots are point-in-time backups that need to be converted into managed disks, the rest becomes a repeatable process: create managed disks from snapshots, create or update a VM using those disks, attach any restored data disks, then validate boot and application health.
The best part? When you approach it systematically—especially by restoring into a new VM first—you reduce risk and make troubleshooting sane instead of theatrical. And if something goes wrong, well, at least you now know exactly which part of the timeline is lying to you: the snapshot, the disk, the VM configuration, or the application’s expectations.
Go forth and restore confidently. Your VM can’t stay broken forever. Even Azure resources eventually learn their lesson.

