Uncategorized

PowerCLI 5.0.1 Released with vCloud Director Automation

Today PowerCLI 5.0.1 has been released. Normally with a .0.1 release you will see small bug fixes and performance increases. This is the case with this release, there are indeed bug fixes and performance increases but there is also something very exciting… PowerShell Cmdlets for managing VMware’s cloud solution – VMware vCloud Director.

The latest bug fixes and other enhancements can be found in the change log here, this post will mainly cover what's new from the vCD PowerCLI snapin or VMware.VimAutomation.Cloud snapin.

vCloud Director Cmdlets

With the addition of vCloud Director Cmdlets to the PowerCLI snapin administrators are now able to automate their cloud deployments and report on key metrics. Using PowerShell's ability to easily integrate with other applications and export to multiple media types, vCloud Director can now be expanded with simple easy to understand code designed towards the system administrator.

Included in PowerCLI 5.0.1 you will now see a new snapin called VMware.VimAutomation.Cloud, this will contain the cmdlets used for working with your vCloud Director deployment. This initial release of the cmdlets will mainly focus on the reporting aspect of vCD or the “Get Cmdlets”. History has shown us that this is a place where most administrators start with a new PowerShell cmdlets as it is easy and safe – you are not going to accidently cause any issues just by reading data!

As well as the “Get Cmdlets” you will also be able to use cmdlets designed for importing virtual machines from the underlying vSphere environments and searching cmdlets which will allow you to search for specific objects within your cloud.

Advanced users of PowerCLI will be familiar with the Get-View Cmdlet currently available for vSphere. For vCloud Director, Get-CIView will offer a similar type of interaction, opening up the entire vCloud API to enable tasks which are part of the vCloud API that do not yet have a specific cmdlet.

vCloud Director Cmdlet Overview

The following cmdlets are part of this release and can be retrieved with:

Get-PSSnapin –Module VMware.VimAutomation.Cloud

As always you can find out more information on these cmdlets using the Get-Help cmdlet within PowerCLI.

 

Name

Synopsis

Connect-CIServer

Connects to the specified servers.

Disconnect-CIServer

Disconnects from the specified cloud servers.

Get-Catalog

Retrieves the specified cloud catalogs.

Get-CIRole

Retrieves roles in the cloud.

Get-CIUser

Gets cloud users.

Get-CIVApp

Retrieves virtual appliances in the cloud.

Get-CIVAppTemplate

Retrieves virtual appliance templates.

Get-CIView

Returns cloud views by Id.

Get-CIVM

Retrieves the virtual machines on the cloud.

Get-ExternalNetwork

Retrieves cloud external networks.

Get-Media

Retrieves cloud medias.

Get-Org

Gets cloud organizations.

Get-OrgNetwork

Retrieves cloud organization networks.

Get-OrgVdc

Retrieves organization VDCs.

Get-ProviderVdc

Retrieves the specified cloud provider VDCs.

Import-CIVApp

Imports a virtual machine from vSphere to a cloud.

Import-CIVAppTemplate

Imports a virtual machine or an OVF package from a vSphere server to the vCloud as a virtual appliance template.

Search-Cloud

Searches the cloud for objects of the specified type.

 

Download

PowerCLI 5.01 can be downloaded from the PowerCLI download page here.

Stay tuned for more blogs explaining how to use these new cmdlets.