vCloud Director: Federation certificate expiration emails / Certificate regeneration troubles in large environments

Hi, this is Daniel and this is my first post about a small gotcha you might experience with VMware vCloud Director and the surprising resumé that there is no automated solution for fixing that. Since vCloud Director 5.1 it is possible to enable your organization to use an SAML Identity provider. And even if you […]

vCloud Director (vCD) allocates DistributedVirtualPorts from a DistributedVirtualPortGroup in a non-sequential order

When you have a DistributedVirtualPortGroup in vCenter (vC) with a fixed number of VirtualPorts of 10 and you set that DistributedVirtualPortGroup to “non-expanding” you will get an error with vCloud Director (vCD) when you try to allocate more than one (1) DistributedVirtualPort. However, when you look at the DVS DistributedVirtualPortGroup you find enough available DVS […]

Get-CiVm CmdLet is much slower than the direct underlying REST calls

Using PowerCLI for fun and profit in general is a great thing to do – in general… However, in certain cases PowerCLIs implementation is much slower than using the underlying REST calls directly. This is especially true when using Get-CiVm to get information about a vCloud Director (vCD) virtual machine. Consider the following fragment: This […]

PowerCLI Search-Cloud reports wrong data on QueryType ‘ProviderVdc’

Recently I quickly mentioned the universal PowerCLI applet Search-Cloud that can be used when dealing with vCloud Director. Howevery it seems you have to verify its output when using it to query Provider Vdc parameters. The output mixes the “allocation” and “used” counters for CPU, Memory and Storage as you can see in the example […]

Use PowerCLI for vCloud Director (vCD) and direct REST calls from within the same login session

With PowerCLI’s ConnectCI-Server CmdLet it is pretty easy to login to a vCD host. And for most of the time the supplied CmdLets are sufficient enough to solve the problems we deal with it daily. However, sometimes we would like to make specific REST calls to vCD directly (for example when the Searc-Cloud CmdLet is […]

Getting current CPU usage for vCloud Director Organization VDC

In vCloud API (via REST, vCO PlugIn, or PowerCLI) you can query CPU, memory and disk usage for VDCs. However, when retrieving the values for current CPU usage you always get ‘0’ – regardless of real current usage. Values for memory and storage seem correct. There is a workaround for this via querying the underlying […]

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): done.

Search-Cloud is a generic Get-* CmdLet (via vCD REST Query Service)

Along with the CmdLets in “VMware.VimAutomation.Cloud” you will find a CmdLet that is called “Search-Cloud”. In fact this is one of the most powerful CmdLets in ypur arsenal of vCD CmdLet tools. It is especially useful as it uses the new Query Service of vCD and is thus much faster than the other traditional Get-* […]

Get Disk Capacity of a Virtual Machine in vCloud Director via PowerCLI

With the advent of PowerCLI for vCloud Director the reasons for using vCenter Orchestrator (vCO) blur even more. VMware provides us several CmdLets that we can all find in the “VMware.VimAutomation.Cloud” snapin (“Get-Command -Module VMware.VimAutomation.Cloud”). Sure this library is by far not perfect, there is quite some functionality. However, when using the “Get-CiVm” CmdLet you […]