In VMware Cloud Foundation Automation (VCFA) 9.x, executing local system commands on the Orchestrator server application via workflows using the JavaScript script engine fails with the following error:
This method is disabled for security reasons. 'Command' is deprecated and will be removed in future releaseCommand interface are also marked with a red exclamation mark, even if approval was correctly granted.VMware Cloud Foundation Automation (VCFA) 9.x
Usage of the Command interface in JavaScript was disabled for security reasons. The Command method has been deprecated and removed from the product to prevent potential security vulnerabilities.
This issue is tentatively planned to be fixed in release VMware Cloud Foundation (VCF) 9.1.2.
The Command method is deprecated and was removed from VMware Cloud Foundation Automation due to potential security issues.
The method has now been added back but can be disabled if needed.
The permanent solution is to alter workflows so that they are not directly running commands via javascript, if at all possible.