VMware Cloud Community
wwsj1967
Contributor
Contributor

Modifying the Blueprint Screen

Is there any way to modify the blueprint screen?  I would like to change the order in which default items appear, edit network information, add tabs so it logically looks like a user tab, cost center tab, vm information tab and a vm tab where memory and storage is specified.

Thanks

Bill

Reply
0 Kudos
32 Replies
wwsj1967
Contributor
Contributor

After a call with VMware Support I was able to get things rolling.  I have configured everything per the instructions but I still have a couple questions.

I need to pull the pieces of the machine name directly from a users response to a dropdown list.  For example, APP will have a list of upwards of 40 different choices.  Using APP as an example, a user could select the value "APP - Generic Application Server".  I also have DEPARTMENT and ENVIRONMENT so the user could select the department of "IT - Information Technology" and "L - Lab".  I want to come up with the name of ITAPPLxxx.

How do I get these values and pull the first 1 to 3 characters into the server name?

Reply
0 Kudos
sbeaver
Leadership
Leadership

If you are using the ASD you might want to consider creating three properties for what you need and then from vRO you can have those variables hidden or could hide them in vCAC.  You could create an action that you can have run once all the drop-down values you need have been selected, the action can kick off and apply the logic to give you what you need. Maybe something like this if (x = "IT"){var DEPARTMENT = "IT"} or something along the lines of if, else, statements.  Now if you just need say the first three letters of the value of the drop-down then you could create an action with RegEx to shorten the value to what you need.  Are you following me with this?

If you are using the custom hostname workflows, this is something I am doing, I have what I like to call the dynamic properties workflow that is the first workflow that is run during the buildingworkflow stub.  This workflow will get properties values using the "Read virtual machine entity" workflows and then do some logic or other calculations and then use the "Update a vCAC model entity" workflow to update the vCAC properties.  So when the Dynamic Properties workflow finishes and the Hostname workflow starts all the variable properties I need have been updated or created to get what I need.

Hope this is making sense.  There are a few ways to do this, just map out the work flow and see what appears like the most logical method to pursue

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos
wwsj1967
Contributor
Contributor

I have all three created as properties within the blueprint.  I was thinking of using t using a CASE statement then passing the information onto the custom hostname applet.  See below.  What do you think?

This would give me an easy place to update items as well.

CASE

     Department = "IT - Information Technology"

          THEN dept="IT"

     Department = "MA - Marketing"

          THEN dept = "MA"

ENDCASE

Reply
0 Kudos
sbeaver
Leadership
Leadership

That seems logical and should get you where you need to go.  Since the form defines the "department" variable you should consider making the "dept" variable hidden from the end user

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos
wwsj1967
Contributor
Contributor

My thoughts exactly.  Department/dept, Environment,env, Service/svc.  Feed them into the custom naming applet like this {dept}{svc}{env}### I should get itappt000 which is IT department, generic app and test environment.  Each one would be a custom vRO flow so they can be easily updated.

Reply
0 Kudos
sbeaver
Leadership
Leadership

Perfect!!  So what are you waiting for?  Smiley Happy

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos
wwsj1967
Contributor
Contributor

Working on the environment switch right now!!  I'll keep you posted.

Reply
0 Kudos
wwsj1967
Contributor
Contributor

I'm down to troubleshooting.  Have you seen this before?

vCenter Orchestrator workflow Set custom hostname failed with error: Error executing vCenter Orchestrator workflow: org.mozilla.javascript.NativeString cannot be cast to java.lang.String..

Reply
0 Kudos
sbeaver
Leadership
Leadership

Where in the workflow did it fail and did it give a line number in the error or anything else specific to go on?

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos
wwsj1967
Contributor
Contributor

That's the kicker.  I don't have a line number or any location tossing this error.

Reply
0 Kudos
wwsj1967
Contributor
Contributor

It looks like the error is coming from the "Update Virtual Machine" module.

Reply
0 Kudos
sbeaver
Leadership
Leadership

The "Set Custom Hostname" workflow is located in the workflows --> Daily Hypervisor --> vCAC --> Custom Hostname --> Set custom hostname .   Can you expand that workflow to expose the workflow runs and see where in the schema it failed and copy and paste the printout of the workflow logs?

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos
sbeaver
Leadership
Leadership

ok to further troubleshoot would you please be so kind as to change the "resume from failed behavior" from system default to Enabled for the custom hostname workflow as well as the Update a VCAC Model entity which is called update virtual machine in the hostname workflow.  You may not be able to edit Update virtual machine workflow without making a copy of it first and putting in the copied version.  Just need to trace down what it is not happy with

Steve Beaver
VMware Communities User Moderator
VMware vExpert 2009 - 2020
VMware NSX vExpert - 2019 - 2020
====
Co-Author of "VMware ESX Essentials in the Virtual Data Center"
(ISBN:1420070274) from Auerbach
Come check out my blog: [www.virtualizationpractice.com/blog|http://www.virtualizationpractice.com/blog/]
Come follow me on twitter http://www.twitter.com/sbeaver

**The Cloud is a journey, not a project.**
Reply
0 Kudos