VMware Cloud Community
cjoshi
Enthusiast
Enthusiast
Jump to solution

trigger a VM reconfigure workflow via Event Subscription before the VM is Powered ON

Hi,

I am trying to trigger a VM reconfigure workflow to update VM hardware configuration. This reconfiguration requires the VM to be in powered on state. Now I unable to figure out which event should I trap/subscribe to ensure:

  1. The VM is registered
  2. The VM is not yet Powered ON.

I am aware that within my existng workflow, I can PowerOff the VM and then execute the reconfigure VM task. I just want to be cleaner and execute the workflow after the VM has registered by yet to PowerOn.

Any help or pointers would be appreciated.

Thanks.

Regards Shekhar

1 Solution

Accepted Solutions
cjoshi
Enthusiast
Enthusiast
Jump to solution

Thanks Sascha. Yesterday I figured out the same thing.

State: CloneWorkflow.CloneMachine

Phase: EVENT

Event: CloneWorkflow.CloneMachine.EVENT.OnCloneMachineComplete

Thanks.

Regards Shekhar

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

View solution in original post

Reply
0 Kudos
2 Replies
virtualsabi
Enthusiast
Enthusiast
Jump to solution

Hi,

you can use the "InitialPowerOn" event for executing workflows prior powering on the VM in the BuildingMachine stage.

If you're using for example the CloneWorkflow the event should be:

CloneWorkflow.InitialPowerOn

To get a feeling of all the available events, you can attach a simple workflow to be triggert by any event without conditions.

greets

Sascha

cjoshi
Enthusiast
Enthusiast
Jump to solution

Thanks Sascha. Yesterday I figured out the same thing.

State: CloneWorkflow.CloneMachine

Phase: EVENT

Event: CloneWorkflow.CloneMachine.EVENT.OnCloneMachineComplete

Thanks.

Regards Shekhar

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

Reply
0 Kudos