PowerShell 4

vCAC Provisioning without Guest Agent leaves Machine in ‘Installing OS’ state

When provisioning a server via PXE or ISO install you might run into a problem where you see your machines being in an ‘Installing OS’ state (between ‘BuildingMachine’ and ‘MachineProvisioned’) though the actual installation has finished long time ago. This might be because the ‘Guest Agent’ is either not installed on the image/machine or because there is no connectivity between […]

PowerShell 0

ServiceMesh AgilityPlatform: Login via PowerShell

Here is a quick script on how to login to ServiceMesh AgilityPlatform. Never heard of the product? don’t bother. It works nevertheless … Subsequent calls to AgilityPlatform are then execeuted like this (eg list all projects on the platform): An easy way to check if the login session is still valid is to issue the following request: You should receive […]

PowerShell 1

[NoBrainer] Convert IP address string into an [IPAddress] compatible constructor string

When you try to convert an ip address string into an [IPAddress] object you might end up with a different address than expected. This can happen if you use the ‘leading zero’ notation for IPv4 addresse (which is not really correct, but easier to sort alphabetically). When you create an [IPAddress] with that kind address style, the constructor does internally […]

PowerShell 0

Create vCAC ManagementModelEntites objects from ODATA REST call with PowerShell

As quickly described in a previous post, the ‘AddQueryOption()’ in the vCAC WCF DataService is flawed and does not allow you to narrow queries and thus leads to massive performance penalties when working with larger installations. However, there is a workaround for this: you can use native ODATA REST calls and convert the result into a native .NET vCAC ManagementModelEntities […]

vCloud Automation Center 0

vCAC 5.2 Hotfix 5 fails to install correctly on a machine without Model Manager Data directory

When you install vCAC 5.2 Hotfix 5 you certainly have to install this on all componentens and systems running any piece of vCAC software. However, there is a scenario when this is not enough, or you have to do some manual adjustments. You will remember, that when you first installed vCAC 5.2, you had to ‘install’ the ‘Model Manager Data’ […]

vCloud Automation Center 2

vCAC 5.2 Hotfix 5 Available

vCAC 5.2 Hotfix 5 is available. This hotfix addresses a lot of issues that were unfortunately introduced with hotfix 4. So it might be a good invest testing it to see if things are gone… A backup of your infrastructure prior installing it is highly recommended as a restore is not really possible. So you best test it thoroughly in […]

PowerShell 2

[NoBrainer] Use splatting to simplify Cmdlet development

When rolling your own Cmdlets you will probably want to expand your module over time possibly adding or editing functions. I order to keep your Cmdlet as a function and not having to reload the module on every code change you can use Splatting (which requires at least PowerShell v3) to simplify developement and debugging. All you have to do […]

PowerShell 6

[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 you will find plenty of […]

PowerShell 0

Housekeeping the vCAC MgmtContext

When working with the vCAC MgmtContext from within PowerShell or whatever other .NET language you will probably have noticed two properies on the context called ‘Entities’ and ‘Links’. Whenever you make a call like ‘$vm = m.VirtualMachines |? VirtualMachineName -eq “server1″‘ the DataContext is tracking the queries objects and thus adding them to the two aforementioned properties (that are actually […]