Setting the Machine Name of a vCAC-provisioned VM to comply with a Corporate Standard – Part 1 of 4
Setting the Machine Name of a vCAC-provisioned VM to comply with a Corporate Standard – Part 1 of 4
http://brianragazzi.wordpress.com/2014/03/17/setting-the-machine-name-of-a-vcac-provisioned-vm-to-comply-with-a-corporate-standard-part-1-of-4/
Setting the Machine Name of a vCAC-provisioned VM to comply with a Corporate Standard – Part 1 of 4
- Machine Prefix/Property Definition – Part 1
- Powershell – Part 2
- Workflow modification – Part 3
- Blueprint Update – Part 4
Important Aside
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.
Background
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.
Solution Overview
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:
BG1VWAPP14
BG1 = Business Group initials
V = Virtual
W = Windows
APP = APPlication server
14 = Sequence number
Preparation
Same preparation steps as here
Steps
- 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 toRole
, the Control Type toDropDown
and Required.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 tocustom.machineRole
and the Value to “APP,CTX,DEV,ORA,SQL,VDI,WEB” (or whatever comma-delimited list you wish)