QuestionQ36

VerifiedVCF: Consume and Automate

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

  • Ensure newly deployed Virtual Machines create a DNS A record and a DNS PTR record in DNS.
  • Create the DNS records before each Virtual Machine is deployed.
  • Ensure that any DNS record created is deleted if a deployment fails.
  • Remove the DNS records for each Virtual Machine only after it is destroyed.
  • Allow every workflow to finish before beginning an additional workflow for the same event topic.

The administrator has already completed these tasks:

  • Created two VCF Operations Orchestrator Workflows with corresponding Event Subscriptions:
    • Create DNS Records
    • Delete DNS Records
  • Created a new blueprint for deploying a Virtual Machine:
    • 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 must the administrator configure in the Event subscription to ensure that the DNS record is created only when the domain name is provided?

Explanation

An event-subscription condition that tests event.data.customProperties['domainName'] != null filters the lifecycle event based on the blueprint’s domainName custom property. The DNS workflow therefore runs only when a domain name is present; workflow blocking and recovery behavior do not provide this property-based filtering.

Learn more

Community Discussion

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