top of page

VCF Automation Blueprint Input Options

  • Writer: Brock Peterson
    Brock Peterson
  • Nov 24
  • 2 min read

In our last blog we used the VCF Automation Quickstart to guide us through creation of our first Template/Blueprint. I'd like to take that Template/Blueprint and expand on it, first by allowing the user to input a few things. Let's go.


If you recall, our original Template/Blueprint looked like this.


ree

When published to the Service Broker Catalog it looks like this.


ree

I'd like to make this a bit more robust:

  • Allow the user to select Cpu Count up to a maximum and provide a default.

  • Allow the user to select Total Memory up to a maximum and provide a default.

  • Allow the user to select an IP from an IP Block


Back in Assembler - Design we can see the YAML Code, and inserting a new line to the cpuCount input gives us some options.


ree

Let's first clone our original Template/Blueprint and make all changes there.


ree

While will give us this.


ree

Let's edit the Windows 2022 VM Template/Blueprint to prompt the user for vCPU and Memory, with some options, defaults, minimums, and maximums.


ree

We can test it be selecting TEST bottom left.


ree

Clicking each dropdown gives us the options we enumerated in the YAML.



Click TEST to test the Template/Blueprint.


ree

The test was successful, indicating the YAML is good. If you recall, we had an IP Block we were using in this case: 192.168.135.190 - 192.168.135.199. Let's give users the option to select one from a dropdown.


ree

As you can see I've enumerated our IP Block and attached it to the VM at the bottom. Let's test it.


ree

Click TEST to see if it works.


ree

Much more we could add to our Template/Blueprint, but this is a good start. Let's version it by clicking VERSION bottom left.


ree

I gave it a Description, Change log, and checked the box to release it to the Service Broker Catalog. Click CREATE. Back on the Service Broker Catalog we'll now see our Windows 2022 VM Template/Blueprint.


ree

Let's see if it works, click REQUEST.


ree

We can watch the progress here.


ree

We can see the VM being deployed over in vCenter.


ree

Once completed in Service Broker it will look like this.


ree

Over in vCenter it'll look like this.


ree

This is just an example of what we can do to enhance the Template/Blueprint created by the Quickstart workflow. Next time we'll explore naming conventinos and more, hope this was helpful!

Comments


    bottom of page