Tenant administrators and business group managers can call Visual Basic scripts to run outside of vCloud Automation Center as additional steps in the machine life cycle and to update custom property values of machines.

Note

If your fabric administrator creates a build profile that contains the required custom properties and you include it in your blueprint, you do not need to individually add the required custom properties to the blueprint.

Log in to the vCloud Automation Center console as a tenant administrator or business group manager.

Gather the following information from your fabric administrator for each Visual Basic script:

The complete path to the Visual Basic script, including the filename and extension. For example, %System Drive%Program Files (x86)\VMware\vCAC Agents\EPI_Agents\Scripts\SendEmail.vbs.

Note

Your fabric administrator might have provided this information in a build profile.

Create at least one blueprint.

1

Select Infrastructure > Blueprints > Blueprints.

2

Point to the blueprint to which you want to add Visual Basic scripts and click Edit.

3

Click the Properties tab.

4

(Optional) Select one or more build profiles from the Build profiles menu.

Build profiles contain groups of custom properties. Fabric administrators can create build profiles.

5

Add the Visual Basic script custom properties.

a

Click New Property.

b

Type the Visual Basic script custom property name in the Name text box.

Option

Description

VbScript.PreProvisioning.Name

Runs the Visual Basic script before a machine is provisioned.

VbScript.PostProvisioning.Name

Runs the Visual Basic script after a machine is provisioned.

VbScript.UnProvisioning.Name

Runs the Visual Basic script when a provisioned machine is destroyed.

c

Type the complete pathname, including filename and extension, to the Visual Basic script in the Value text box.

For example, %SystemDrive%\Program Files (x86)\VMware\vCAC Agents\EPI_Agent\Scripts\SendEmail.vbs.

d

(Optional) Select the Encrypted check box to encrypt the custom property in the database.

e

(Optional) Select the Prompt user check box to require the user to provide a value when they request a machine.

If you choose to prompt the user for a value, any value you provide for the custom property is presented to the user as the default. If you do not provide a default, the user cannot continue with the machine request until they provide a value for the custom property.

f

Click the Save icon (Save).

6

Repeat to add multiple Visual Basic scripts to your blueprint.

7

Click OK.