Tenant administrators and business group managers can call Visual Basic scripts to run outside of vRealize Automation as additional steps in the machine life cycle and to update custom property values of machines.
About this task
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 vRealize Automation 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.
Your fabric administrator might have provided this information in a build profile.
Create at least one blueprint.
- Select .
- Point to the blueprint to which you want to add Visual Basic scripts and click Edit.
- Click the Properties tab.
- (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.
- Add the Visual Basic script custom properties.
- Click New Property.
- Type the Visual Basic script custom property name in the Name text box.
Runs the Visual Basic script before a machine is provisioned.
Runs the Visual Basic script after a machine is provisioned.
Runs the Visual Basic script when a provisioned machine is destroyed.
- 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.
- (Optional) Select the Encrypted check box to encrypt the custom property in the database.
- (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 users for a value, any value you provide for the custom property is presented to them as the default. If you do not provide a default, users cannot continue with the machine request until they provide a value for the custom property.
- Click the Save icon ().
- Repeat to add multiple Visual Basic scripts to your blueprint.
- Click OK.