azure

I’m just getting started learning Microsoft’s Azure cloud service and was disappointed to find out that an easy way to take and revert snapshot wasn’t there. After Googling for a bit I discovered that a similar functionality exists called blob copying. Using blob copying, you can essentially do the same thing as a snapshot which saves the state of a disk at a moment in time. After a few hours of tinkering around with the code in Keith Mayers’ Scripting Guys post I was able to come up with a robust, working solution. I’ve included here both my Create-AzureVmSnapshot and Restore-AzureVmSnapshot scripts. I’ve successfully copied and restored a single Azure VM of mine but please do your own testing before you use these scripts religiously.

Download the create snapshot script on the Technet Script Repository
Download the restore snapshot script on the Technet Script Repository


Ready to stop reading and start learning about PowerShell, DSC, Windows Server, Sharepoint, IIS and dozens of other categories? If so, check out the hundreds of absolutely no-PowerPoint, technical demo screencasts available on the new, IT e-learning platform TechSnips. Click here for a 7-day free trial to see what it's all about!
%d bloggers like this: