We are using XaaS to request a VM blueprint to be built, with all our parameters and VM specs etc. So far we've worked mostly in vRA/vRO to build the surrounding mechanism, configuration elements, vRA Catalog Items etc, but not really sent the request to build machine. We are now starting to do so to start coding the IPAM/DNS/AD/CMDB/++ integrations and see what happens etc when a VM gets provisioned. For this we want to use the Event Subscriptions. So far so good..
Problem is we want to block/stop/fail the VM provisioning before it hits the VMPSMasterWorkflow32.BuildingMachine event so it won't actually start to clone our template. This takes some time, and with lots of code testing and request firing off it would be bad to just let the machine get built when there are no IP addresses etc to give to the VM.
So does anyone know how to stop/kill/dispose/fail the provisioning process right before BuildingMachine?
We intend to do most of the 3rd party integration in VMPSMasterWorkflow32.Requested and .VMPSMasterWorkflow32.WaitingToBuild states, which is the states before .MPSMasterWorkflow32.BuildingMachine.