Does anyone have an easy way to not require a deployment name, but instead to use the custom name as the deployment name?
Damion Terrell . + (He/Him) + . * . + @ + . * . + .
Core IT Service Specialist * . + * . + . + . + * +
UNM – IT Platforms – VIS + . . . . . . . . .
. + . + * . + * .
* . . + . . . . + . + * + .
“You learn the job of the person above you, * + . + * @
and you teach your job to the person below you..” . * +
@evil242
If you are taking VM name as input , You can use same variable to copy the name of the deployment as well using Custom form .
I found this online and it works for me:
- user catalog item name plus timestamp for automated Deployment naming. I also hid this field on the custom form so users don't need to see it at all.
I am using the Custom Name template to generate standardized VM and hostnames.
2 questions.
1. I have a ShortOS variable I would like to be mapped in with the Image code. So I need to figure out how to reference a variable created there. Do you have documentation reference for this?
2. What ends up being the Custom Name variable I can assign to the deployment name on the Custom form?
Thank you @Ankush11s for your help.
Damion Terrell . + (He/Him) + . * . + @ + . * . + .
Core IT Service Specialist * . + * . + . + . + * +
UNM – IT Platforms – VIS + . . . . . . . . .
. + . + * . + * .
* . . + . . . . + . + * + .
“You learn the job of the person above you, * + . + * @
and you teach your job to the person below you..” . * +
@evil242 good stuff Please mark this thread as resolved , It would help to keep track of unresolved queries
But I just asked two questions and don't feel resolved.
Damion Terrell . + (He/Him) + . * . + @ + . * . + .
Core IT Service Specialist * . + * . + . + . + * +
UNM – IT Platforms – VIS + . . . . . . . . .
. + . + * . + * .
* . . + . . . . + . + * + .
“You learn the job of the person above you, * + . + * @
and you teach your job to the person below you..” . * +
Here are high level steps
create a input variable name vmname:
map that name to custom property in cloud template
release the version
go to service broker content and policy => content , edit and then map
formatVersion: 1
inputs:
vmname:
type: string
title: 'Enter VM Name'
default: ''
resources:
Cloud_vSphere_Machine_1:
type: Cloud.vSphere.Machine
properties:
image: Linux
vmname: ${input.vmname}
cpuCount: 1
totalMemoryMB: 1024
Here is the sample of cloud template which name is community , release this , Once release go to service broker
content source , validate then look for cloud template and configure form
Here for click deployment name field and click values and choose bind value and then choose from canvas
that is how you use custom form and custom name variable
@evil242 did above steps helped
No, the above steps did not help. Again, I am using the Custom Names (Cloud Assembly > Infrastructure > Custom Names) which we have an established standard for our organization.
In the custom form I can reference as a conditional value if the Custom Name value is not empty, but there appears to be no way to populate or "bind" to the Custom Name.
Damion Terrell . + (He/Him) + . * . + @ + . * . + .
Core IT Service Specialist * . + * . + . + . + * +
UNM – IT Platforms – VIS + . . . . . . . . .
. + . + * . + * .
* . . + . . . . + . + * + .
“You learn the job of the person above you, * + . + * @
and you teach your job to the person below you..” . * +
So regarding the short OS, I found https://vtam.nl/2022/05/01/vra-8-8-custom-names/
Which sets the name property in
resources:
Cloud_vSphere_Machine_1:
type: Cloud.vSphere.Machine
properties:
name: “Cloud_vSphere_Machine_1” ; was this
I set it to
name: W
and updated the Custom Naming machine template to
${project.name}${resource.name}${ISPOCN.APP}${ISPOCN.FUNC}${ISPOCN.ENVT}${##}
So this works for now, I just hope name isn’t needed in the future.
Still not sure about updating env.deploymentName
Next question is which property should be converted to_lower for Linux naming standards?
Damion Terrell . + (He/Him) + . * . + @ + . * . + .
Core IT Service Specialist * . + * . + . + . + * +
UNM – IT Platforms – VIS + . . . . . . . . .
. + . + * . + * .
* . . + . . . . + . + * + .
“You learn the job of the person above you, * + . + * @
and you teach your job to the person below you..” . * +