Promote a Linked Clone Virtual Machine to a Full Clone with PowerCli

Linked clone VirtualMachines share their base disks with their parent virtual machine. Only changes (delta) are stored in the childs virtual disks. These results in two major benefits: Fast Provisioning time Space savings   However, linked clones have some limitations: Diskspace cannot be adjusted Performance impact – Depending on storage cache The following PowerCLI snippets […]

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 […]

Module: biz.dfch.PS.Cumulus.VI

This is Microsoft PowerShell module is part of our Apache 2.0 based open source automation framework “Cumulus”. You will find all related posts via the “Cumulus” tag. You can use this module to perform operations against VMware vCenter infrastructure (the module makes use and abstracts VMware’s supplied PowerShell PowerCLI snapin). You can download the module […]

[NoBrainer] SSL connection error when using PowerShell

When using https request (directly or indirectly) with PowerShell you might run into different errors when using non-standard (i.e. not trusted, expired, self-signed etc) certificates: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. The underlying connection was closed: An unexpected error occurred on a send. In either case […]

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-* […]