VMware Cloud Community
sharptonm
Enthusiast
Enthusiast

vRA 7.3 how to pull request data on Azure (XaaS) destroy operation

Hello,

I am navigating the XaaS change with Azure trying to recreate what we have done with IaaS/EB (which works great).  I have duplicated all the VMware provided workflows and created my own XaaS BP to do things like custom hostnamer, etc by changing their workflows to do what I need.  I am now trying to do the same thing with a disposal/destroy XaaS workflow.  This all works great on Allocate Azure VM as I can pull in requestData like properties of IaaS machines (Catalog driven).  Has anyone messed with this?  I can see they are pulling the tags to know what to remove from Azure, but requestData is not here unless a build fails during provision.

   if (virtualMachine.tags) {

        preparedRequestData = new Properties();

        preparedRequestData.put("subscriptionId", virtualMachine.subscriptionId);

        preparedRequestData.put("resourceGroupName", virtualMachine.resourceGroupName);

        preparedRequestData.put("vmName", virtualMachine.name);

        var tag = getTag(virtualMachine.tags);

        preparedRequestData.put("tag", tag);

Basically, I need a way to pull requestData on the destroy part of the lifecycle so I can pass things into my disposal workflow.  Any help is greatly appreciated.

Mike

0 Kudos
0 Replies