VMware Cloud Community
abhilashhb
VMware Employee
VMware Employee

Rest workflow fails to run

I'm pretty new to extensiblity part of vCAC and i'm trying to run a state change workflow after building the machine. The workflow will basically invoke a rest operation once the machine is provisioned.

When i assign this to the blueprint and run request the machine, it ends up with an error where it fails to even deploy the machine. I have a feeling it is trying to look for the machine before creating it and is failing.

In the workflow runner it says it failed to get the vCAC:VirtualMachine input.

Can someone help me go in the right direction here?

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

4 Replies
willonit
Hot Shot
Hot Shot

I believe creating a vcenter endpoint resolved this for me. Do you have an endpoint created for your vcenter in orchestrator?

Reply
0 Kudos
abhilashhb
VMware Employee
VMware Employee

And how is it related to vCenter endpoint?

Yes i have a vCenter endpoint. Let me verify and get back to you.

Abhilash B
LinkedIn : https://www.linkedin.com/in/abhilashhb/

Reply
0 Kudos
willonit
Hot Shot
Hot Shot

The vCenter endpoint in orchestrator allows for orchestrator to manipulate vCenter objects. vCAC:VirtualMachine references a VC:VirtualMachine so if you do not have a vCenter endpoint in orchestrator it cannot fill this property. If you do not use vCAC:VirtualMachine at all in your workflow you can just remove that as an input parameter and you should be all set.

Reply
0 Kudos
Burke-
VMware Employee
VMware Employee

Which stub did you assign your workflow to? If you want something to run after the VM is ready, I suggest using the Machine Provisioned stub since the Building Machine stub may be trying to run too early for your needs.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter