vrealize/Orchestrator/Workflows/Generate Unique Hostname
2022-06-15 15:37:10 -05:00
..
01_create_lock.js update workflow 2022-06-15 13:04:25 -05:00
02_getSdkConnectionForFC.js update symlink 2022-06-15 13:05:32 -05:00
03_search_for_matching_VM_names.png update workflow 2022-06-15 13:25:07 -05:00
04_generate_candidateVmName.js update workflow 2022-06-15 13:25:07 -05:00
05_check_for_VM_name_conflict.js update workflow 2022-06-15 13:25:07 -05:00
06_check_for_DNS_conflict.js update workflow 2022-06-15 13:25:07 -05:00
07_check_for_AD_conflict.js workflow updates 2022-06-15 14:31:15 -05:00
08_return_vmName.js workflow updates 2022-06-15 14:31:15 -05:00
09_remove_lock.js update workflow 2022-06-15 13:25:07 -05:00
a01_conflict_encountered.js update workflow 2022-06-15 13:25:07 -05:00
README.md update workflow 2022-06-15 13:04:25 -05:00
schema.png schema cleanup 2022-06-15 15:37:10 -05:00
x01_exception_handler.js schema cleanup 2022-06-15 15:37:10 -05:00

Generate Unique Hostname workflow

Ensures a unique, sequentially-numbered hostname by checking for naming conflicts in vCenter, DNS, and Active Directory.

Schema

Inputs/Outputs

Name Type Direction Description
nameBase string Input letter-based portion of the VM naming format
domain string Input domain name for checking DNS conflicts
digits number Input optional manually-specified numbering suffix; overrides automatic numbering but still checks for conflicts
vCenterName string Input FQDN of the owning vCenter
vmName string Output generated VM name

Variables

Name Type Value Description
adHost AD:AdHost [object AD:AdHost] host used by the AD plugin
candidateVmName string holds the current working name during checks
computerNames ConfigurationElement [object ConfigurationElement] vRO config element to keep track of the last-used number sequence for a given nameBase
conflict boolean false gets set to true when a name conflict is encountered
digitCount number 2 determines how many digits get appended to nameBase
errMsg string thrown when errors are encountered
hostnameSequence number 0 starts the sequence at 0, tracks as it changes
vcSdkConnection VC:SdkConnection host used by the vCenter plugin (set based on vmName input)
vms Array/VC:VirtualMachine holds VM objects to check for conflicts