VMware

Managing VMware with PowerShell at Virtualization Congress 2009 | Main | Eric Gray over at vCritical has some useful scripts you should check out.

January 09, 2009

Managing VMware Lab Manager with CTP3

PowerShell v2 CTP3 makes it pretty easy to connect to a web service. VMware Lab Manager has a really good web service interface, so even though there are no Lab Manager cmdlets it's still pretty easy to use PowerShell to automate Lab Manager.

First, you'll need some library code that defines a few helper functions to get you started. I've posted this over at PoshCode. Download that and save it to a file called LabManager.ps1

Next, start a PowerShell session in the same directory as LabManager.ps1. The code below shows how to use this to connect to and automate Lab Manager.


The complete reference to the Lab Manager API is also online.

Here's a video showing it in action.

 
 Managing VMware Lab Manager with PowerShell CTP3

A nice new resource for the VI Toolkit:

In addition to being available on poshcode, I’m going to start putting all my demos on my Skydrive folder for easy access. If you ever need some ideas or a quick demo to convince your coworkers they should be using the VI Toolkit, it’s a great place to look. If you’re interested, add it to your RSS reader and stay tuned for some great updates.

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341c328153ef010536b70bc8970b

Listed below are links to weblogs that reference Managing VMware Lab Manager with CTP3:

Comments

Dmitry Sotnikov

You might also want to check out the Lab Manager PowerPack here: http://www.powergui.org/entry.jspa?externalID=1647&categoryID=290

This one actually works fine with PowerShell v1 as well.

Post a comment

If you have a TypeKey or TypePad account, please Sign In.