- Machine Prefix/Property Definition – Part 1
- Powershell – Part 2
- Workflow modification – Part 3
- Blueprint Update – Part 4
You should visit Adam Bohle’s blog and his fantastic posts about this. He knows way more about it than I do. I stepped through his and Tom O’Rourke‘s procedures and wanted to document what it took. Those guys are the authority on vCAC.
Machine Prefixes in vCAC allow administrators to set a standard name for machines provisioned by members of a Business Group. The default is simply an alphanumeric prefixing a number. For many (most?) organizations, this is not sufficient and the provisioned machine names should comply with a corporate standard.
I’m looking for a fairly simple method to apply a compliant machine name that can be used by multiple Blueprints, Business Groups and Reservations.
For this example, the name should use the initials of the Business Group, “V” for Virtual, a single letter for the OS (“W” for Windows, “L” for Linux), a three character “role” and a two digit sequence number for uniqueness.
Example Naming convention:
BG1 = Business Group initials
V = Virtual
W = Windows
APP = APPlication server
14 = Sequence number
Same preparation steps as here
- Create a new Machine Prefix that will be used by your Business Group. I used the machine prefix
BG1-and set the number of digits to two.
Did you notice the dash in the machine prefix? That’s important because in this example, I’m going to replace that dash with the additional information. This way, we retain the Business Group-specific prefix and the vCAC-generated sequence number.
- We want to provide our users with a dropdown list of “roles”, so that they can indicate which is appropriate for the requested VM. We do this by using a property dictionary. Navigate to Infrastructure|Blueprints|Property Dictionary
- Click “New Property Definition” and fill out the fields. In this case, lets name it
custom.machineRole, set the Display Name to
Role, the Control Type to
Click the Green check to save
- On our freshly-baked Property Definition, click “Edit” under Property Attributes
- Click “New Property Attribute” and fill out these fields. Here, we’ll set the Type to
ValueList, the name to
custom.machineRoleand the Value to “APP,CTX,DEV,ORA,SQL,VDI,WEB” (or whatever comma-delimited list you wish)
- Now, we need to ensure our dropdown is displayed correctly on the blueprint. So, we’ll create a Property Layout. Just like before, click “New Property Layout”, give it a name – I used “machineRole.selection”. Enter a meaningful description.Green check to save
- Click Edit under “Property Instances” on our new Property Layout, and select
custom.machineRolefrom the dropdown. Set the Order to 1 (since it’s the only one property definition we’re concerned with right now). Green check to save. Click OK to exit Property Instance editing.