Get vCenter Resource Pool from vCloud Director Organization Virtual DataCenter (VDC)

With PowerCLI for vCD and vCenter it is particularily easy to determine the underlying vCenter resource pool for any vCloud Organization VDC. You first retrieve the resource pool relation via the Search-Cloud CmdLet via the urn of the VDC and then use the Get-ResourcePool CmdLet to get the actual resource pool (via Typed Queries):

$resPool = Search-Cloud -QueryType OrgVdcResourcePoolRelation -Filter "vdc==$($Ovdc.id)";
$resPoolVc = Get-ResourcePool -id "ResourcePool-$($resPool.ResourcePoolMoref)";

done.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: