I need to run POSH script to remove the VM from the scom console during dispose stage, but I can't find any vRA state that waits until the workflow completes. I have tried dispose, deactivate and unprovision
While we workflow runs this particular cmdlet (uninstall-scomagent) needs for the machine to be on for it to work but vRA is deleting the machine regardless of the workflow.
Thanks.