QuestionQ56

VerifiedSection 4 - Install, Configure, Administrate the VMware Solution

An administrator manages a VMware Cloud Foundation (VCF) fleet and has been assigned the following task:

Create DNS records before each virtual machine (VM) is deployed by using VCF Automation.

The administrator has already completed these tasks:

  • Created two VCF Operations Orchestrator Workflows with corresponding Event Subscriptions:
    • Create DNS Record -
    • Delete DNS Record -
  • Created a new blueprint to deploy a VM:
    • Added two string inputs, hostname and domainName.
    • Added hostname: ‘${input.hostname}’ as a custom property of the Virtual Machine resource.
    • Added domainName: ‘${input.domainName}’ as a custom property of the Virtual Machine resource.

What should the administrator configure in the Event subscription to ensure that the DNS record is created only when the hostname is supplied?

Explanation

The hostname input is stored on the VM as the custom property hostname. A condition testing event.data.customProperties['hostname'] != null filters the event so the DNS-record workflow runs only for VMs that have a hostname value.

Community Discussion

No comments yet. Be the first to start the discussion!