Creating vCAC ValueExpressions automatically

vCAC has the a built-in feature to define properties as drop down lists that can display information based on a selection of a different (parent) property (as described in the vCAC 5.2 Operating Guide). This is called a “ValueExpression”. Though this mechanism is a bit buggy and might even raise some security issues it is […]

biz.dfch.PS.System.Logging now supports log4net

I changed the way the biz.dfch.PS.System.Logging module implements its file writing by using log4net as the file logger. It makes use of the (static) FileAppender as the RollingFileAppender does not support concurrent access when rolling log files. So the log roll over is still handled within the PowerShell module directly (until I implement a custom […]

Using vCAC 5.2 with a CNAME

When you use vCAC with a CNAME and want to access the website /vCAC from the server itself you might actually notice that you can only access the website via “localhost” instead of the CNAME. This is actually a security feature of the Microsoft Internet Information Server that you can re-configure to adjust this behaviour. […]

Notifiying Users in vCAC via ‘Recent Events’

During long running provisionings you may want to inform the user about the states you are currently processing. In my previous blog post I showed how to add a text to the ‘CurrentTask’. But maybe you want to give the user a little bit more information where the status field does not provide enough space. […]

vCAC: Setting the Status of a Virtual Machine in ‘My Machines’

vCAC CurrentTask

When you provision a machine in vCAC you will probably integrate with other systems in your infrastructure like IPAM, AD, ITSM and the like. Sometimes this ia a lengthly process. At that point in time the user already sees his machine in the self service portal but only get a status like ‘MachineProvisioned’. Wouldn’t it […]

Decrypting Passwords in vCAC ConnectionCredentials

Suppose you provision a virtual machine to a vCenter and then want to change the socket/core ratio of that machine as described in vCloud Automation Center – vCAC – Workflow and Script to Change CPU’s to Cores. For this to actually work you not only need the vCenter address but also some valid credentials you […]

Resolve and Determine vCAC Machine Type

Here is a way how to quickly determine the machine type to be deployed without resorting to the ‘VirtualMachineExt’ object (which by the way is not yet available in the ‘BuildingMachine’ state): In case you wonder what other machine types exist you can check the enumeration like this: Though this can easily be achieved in […]

[NoBrainer] Using PowerShell to convert an IPv4 subnet mask length into a subnet mask address

With PowerShell 3.0 and onwward you can easily convert a SubnetMask in bit form to a “real” dotted 4 octet format: Reverting that operation is a bit trickier, but easily handable as well: UPDATE: be careful when trying to convert IP addresses with leading zeros, as described in this post.