If you or your provider are already running vCloud Director 5.1, you now have access to take a single snapshot of your VMs.

If you want to play with snapshots in PowerCLI, you’re going to need the module in this blog. PowerCLI 5.1 currently only supports the vCloud API 1.5, which means there are no 5.1 API capabilities just yet.

The module uses the current PowerCLI for it’s session and API access, and then bolts on some 5.1 API snapshot magic.

To use the module, simply download the .psm1 file and:

1 Import-Module vCloudSnapshots.psm1

After that, you’ll have access to 4 cmdlets:

1 Get-CISnapshot
2 New-CISnapshot
3 Remove-CISnapshot
4 Set-CISnapshot

To get snapshots:

1 # Get vApps with Snapshots
2 Get-CIVapp | Get-CISnapshot
4 # Get VMs with Snapshots
5 Get-CIVM | Get-CISnapshot
7 # Get Snapshot info for a particular VM
8 Get-CIVM "MyVM" | GetCISnapshot

It should be noted that all the cmdlets apply to a VM or vApp, so always make sure you’re doing a Get-CIVM or Get-CIVapp first.

For example…here’s creating, reverting, and removing:

1 # Create a snapshot for a vApp (or all VMs in the vApp, really.)
2 Get-CIVApp "MyVApp" | New-CISnapshot
4 # Revert to our snapshot
5 Get-CIVApp "MyVApp" Set-CISnapshot -revertToCurrent
7 # Remove our snapshot
8 Get-CIVApp "MyVApp" | Remove-CISnapshot

For more help, just use Get-Help and the command!

vCloud Snapshots Powershell Module

This blog post was originally posted on GeekAfterFive.com.

Blog Post

Are You Fully Prepared for Cybersecurity Threats?

Due to increased attention on cybersecurity events in the news recently, Bluelock commissioned IDG Research for a survey of executive leadership and IT managers across six major industries. In this survey, 64% of respondents cited lost customer confidence as their primary concern.

View Blog Post
Blog Post

Are you prepared for the Zombie Apocalypse?

What does the Zombie Apocalypse have to do with cloud and cloud technologies? At a recent meeting about IT disaster recovery and business continuity, the group started talking about their incident response teams and the plans they had in place.

View Blog Post
Blog Post

Benefits and Advantages of Managed Cloud Hosting

When you’re just starting your managed cloud hosting provider search, it can be hard to tell the differences between what you need, what you want and what providers will and can offer you.

View Blog Post