Within my main workflow, I have a nested workflow that reboots my VM. It is a Windows 10 VM. I would like a sleep or WaitFor event that will pause the main workflow until the VM reaches the Ctrl_Alt_Del phase. This will allow any updates to be applied or boot up sequences to process properly. How can I cause the workflow to pause until Ctrl-Alt-Del? Thanks.
Wait For Ctrl-Alt-Del
Populate an array of vc:virtualmachines from a list box
I would like to create a predefined list of VMs that allows me to select multiple one (as in a listbox) and have the selected vms be a member of an array. I have looked but not having any luck. Thanks
vRO ActiveDirectory Plugin does not return all objects in an orgnizationalUnit
Hello all,
I am on-site working with a customer that has approximately 35,000 objects in a single OU. Unfortunately, I need to present a selection/search criteria to the users to select security groups to add an object (AD:ComputerAD). However, in the AD Browse-Tree there are only 898 elements returned from this OU.
I have invoked the "Configure Active Directory Plug-in Options" workflow, for all configured AD End-Points with the following:
searchSizeLimit | number | 50000.0 | |||
searchSizeLImitPerSerer | number | 100000.0 |
I have updated to the latest AD-Plugin, details below:
vRO:
Version: 7.2.0
Build number: 4629841
Build date: Nov 10, 2016
Database version: 1.77
Plugins:
AD 3.0.6.5491166
AMQP 1.0.4.4512213
Azure 1.0.0.4635872
Cli 2.0.0.3036461
Configurator 7.2.0.4629841
DataManagement 1.0.0.2504108
DynamicTypes 1.2.0.4542195
Enums 7.0.1.4542193
GEF 2.0.0.4278511
Library 7.0.1.4542193
Mail 7.0.1.4542193
NSX 1.0.4.4233593
Net 7.0.1.4542193
PowerShell 1.0.10.4512207
REST 2.2.1.4512209
RPProvisionVCAC 7.2.0-SNAPSHOT.4644246
RPTestJenkins 7.2.0-SNAPSHOT.4644246
SNMP 1.0.3.4538184
SOAP 2.0.0.4552786
SQL 1.1.4.4009493
SSH 7.0.1.4445953
TeamFoundationServer 7.2.0-SNAPSHOT.4644246
VAPI 7.2.0.4542196
VC 6.5.0.4512205
VCACDevopsRPEngine 7.2.0-SNAPSHOT.4644246
VCO 7.2.0.4629841
VRAServer 7.2.0-SNAPSHOT.4644246
Workflow documentation 7.0.1.4542193
XML 7.0.1.4542193
vCAC 7.2.0.4601797
vCACCAFE 7.2.0.4602407
I've set the AD Plugin to debug mode and am seeing the following log entries:
==> /storage/log/vmware/vco/app-server/integration-server.log <==
2017-05-10 10:23:08.280+0000 vco: [component="MSPluginFactory" priority="DEBUG" thread="http-nio-127.0.0.1-8280-exec-2" user="" context="" token="" wfid="" wfname="" anctoken="" wfstack="" instanceid="a7609700-d9ff-4e97-a1d7-c8d27bfb65f0"] Find item. TypeName: OrganizationalUnit
2017-05-10 10:23:08.287+0000 vco: [component="MSPluginFactory" priority="DEBUG" thread="http-nio-127.0.0.1-8280-exec-4" user="" context="" token="" wfid="" wfname="" anctoken="" wfstack="" instanceid="a7609700-d9ff-4e97-a1d7-c8d27bfb65f0"] Find item. TypeName: OrganizationalUnit
2017-05-10 10:23:08.810+0000 vco: [component="Container" priority="WARN" thread="http-nio-127.0.0.1-8280-exec-3" user="" context="" token="" wfid="" wfname="" anctoken="" wfstack="" instanceid="a7609700-d9ff-4e97-a1d7-c8d27bfb65f0"] Error while adding Item to a list in the container [REDACTED_OU_NAME]
2017-05-10 10:23:09.363+0000 vco: [component="Container" priority="WARN" thread="http-nio-127.0.0.1-8280-exec-3" user="" context="" token="" wfid="" wfname="" anctoken="" wfstack="" instanceid="a7609700-d9ff-4e97-a1d7-c8d27bfb65f0"] Error while adding Item to a list in the container [REDACTED_OU_NAME]
2017-05-10 10:23:09.896+0000 vco: [component="Container" priority="WARN" thread="http-nio-127.0.0.1-8280-exec-3" user="" context="" token="" wfid="" wfname="" anctoken="" wfstack="" instanceid="a7609700-d9ff-4e97-a1d7-c8d27bfb65f0"] Error while adding Item to a list in the container [REDACTED_OU_NAME]
2017-05-10 10:23:10.459+0000 vco: [component="Container" priority="WARN" thread="http-nio-127.0.0.1-8280-exec-3" user="" context="" token="" wfid="" wfname="" anctoken="" wfstack="" instanceid="a7609700-d9ff-4e97-a1d7-c8d27bfb65f0"] Error while adding Item to a list in the container [REDACTED_OU_NAME]
2017-05-10 10:23:11.011+0000 vco: [component="Container" priority="WARN" thread="http-nio-127.0.0.1-8280-exec-3" user="" context="" token="" wfid="" wfname="" anctoken="" wfstack="" instanceid="a7609700-d9ff-4e97-a1d7-c8d27bfb65f0"] Error while adding Item to a list in the container [REDACTED_OU_NAME]
If anyone has a work-around or a potential fix for this it would be really welcomed.
Include all VMs in vSphere Folder in array
I have a Configuration Element that is an Array of VC:VirtualMachine. I have to go in and insert the value of each VM into this array. How can I include all vms contained in a specific folder in this array automatically?
Run program in guest issue
Hi All,
I am attempting to use the Run program in guest workflow to install software on some Windows guest vms. I usually install it through the command line, but am looking to streamline a bit with the use of Orchestrator. My problem is that the workflow says it is completing successfully, but it is not working quite as I need it to. When I run it without the command line flags, the program starts as a service on the guest. It will not accept the command line flags needed for a full install, though. I am running the program with the following parameters:
vmUsername: tester
vmPassword: SecureString
vm: myGuest
interactiveSession: no
programPath: C:\Windows\system32\cmd.exe
arguments: cmd /c c:\OrchestratorInstall\myProgram.exe /key=myKey /silent
workingDirectory: c:\windows\system32
environment: not set
Does anyone have any idea how I can get this to do the full install?
Thanks
Find action references with a workflow
I am trying to find action references with a workflow, but have no success in linking action ID with anything else.
I want to get a similar output as right clicking an action and selecting 'References->Find elements that use this element'.
So is there a way to list all actions used in a workflow or just plain listing all the elements that use a specific action?
I've searched through Action and Workflow objects with no success.
Thanks in advance,
Update Registry settings in Windows
I know that I can accomplish this via a batch file, but I would like to be able to accomplish this by way of direct command via Run Program on Guest work flow if possible. For instance, I would like to disable LUA / UAC. Simply setting HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA" to 0. I have created the BAT file and run it thru, vRO, but I would like to try and get it to work by having the Run Program on Guest call Reg.exe directly.
Along with the vm, vmUsername, vmPassword, I have set the following:
workingDirectory - c:\windows\system32\
programPath - c:\windows\system32\reg.exe
arguments - add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 0 /f
I know that it is finding the filename, as I had typos in the attribute values and it returned file not found. I corrected those, at it bypassed that error and received another general error below.
+++++++++++++++++++++++++++++++++
2018-01-05 12:09:17.642] [E] Error in (Workflow:Run program in guest / Scriptable task (item1)#15) A general system error occurred: vix error codes = (3004, 0).
[2018-01-05 12:09:17.656] [E] Workflow execution stack:
***
item: 'Run program in guest/item1', state: 'failed', business state: 'null', exception: 'A general system error occurred: vix error codes = (3004, 0).
(Workflow:Run program in guest / Scriptable task (item1)#15)'
workflow: 'Registry Settings' (5318d794-365d-4ced-a2d6-2140bba3e75c)
| 'attribute': name=vm type=VC:VirtualMachine value=dunes://service.dunes.ch/CustomSDKObject?id='vdiavc.genpt.net%2Cid:vm-2087'&dunesName='VC:VirtualMachine'
| 'attribute': name=workingDirectory type=string value=c:\windows\system32\
| 'attribute': name=programPath type=string value="c:\windows\system32\reg.exe"
| 'attribute': name=arguments type=string value=add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 0 /f
| 'attribute': name=InteractiveSession type=boolean value=__NULL__
| 'attribute': name=environment type=Array/string value=__NULL__
| 'input': name=vmUsername type=string value=vdiadmin
| 'input': name=vmPAssword type=SecureString value=__NULL__
| 'no outputs'
--workflow: 'Run program in guest' (C98080808080808080808080808080805E80808001322751030482b80adf61e7c)
| 'input': name=vmUsername type=string value=vdiadmin
| 'input': name=vmPassword type=SecureString value=8BW76X64N69G40W64K6DS31N6EQ3E40D04TC5F3EC8X4858A6BM9E04D36SEEE4CD4TBDD37E0LDF0AC85K7982FABRA60B99EH273F297P28FA4BSD3B9B38V6F13595Y8500773H258F11CSDE686BBND936BEAQ3A7441BO41D44B8G204E43AUF09DCDR3DE13A6MEF74C4RAE145ABQ
| 'input': name=vm type=VC:VirtualMachine value=dunes://service.dunes.ch/CustomSDKObject?id='vdiavc.genpt.net%2Cid:vm-2087'&dunesName='VC:VirtualMachine'
| 'input': name=interactiveSession type=boolean value=__NULL__
| 'input': name=programPath type=string value="c:\windows\system32\reg.exe"
| 'input': name=arguments type=string value=add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 0 /f
| 'input': name=workingDirectory type=string value=c:\windows\system32\
| 'input': name=environment type=Array/string value=__NULL__
| 'output': name=result type=number value=null
| 'no attributes'
*** End of execution stack.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Any help will be appreciated.
prevent vmotion during machineprovisioned workflow
Hi All,
Sometimes during VM provisioning i.e. when machineprovisioned workflow stub is executing sometimes vcenter does vmotion on the vm. Sometimes scripts are executed on the VM by machineprovisioned workflow. This messes things up. One option is to disable vmotion on a single VM being worked on. How to do this? Any other options.
Any help appreciated.
SRM 6.1.1 with vRealize Orchestrator 7.1
Hey
So I have just started using vRO to manage my SRM environment.
I have a vCenter Appliance 6.0 U2 in both Production and DR site (no ELM)
SRM used is 6.1.1 on both sites. Paired and being used without any issues from web client.
I deployed a vRO 7.1 on my production site and configured it to my vCenter successfully.
Then, ran a workflow to register it to the production vCenter. This completed too.
Then downloaded 6.1.1 SRM vmoapp and the plugin is installed successfully and the SRM workflow and libraries are available.
Then, ran the Configuration of Local Site and it completed too.
Under Administer mode > Inventory > SRM, I can see my local site (Production SRM site)
Ran the Remote Site workflow and it completed too, however, this is not seen in the SRM Inventory in Administer Mode.
Perhaps I am missing something simple?
Thanks
# Suhas
vRA support for Azure Managed Disks
It doesn't appear that managed disks are currently supported through the Azure plugin. Does anyone know if this is on the roadmap? Thanks.
Automate ESXI installation using vRO
Hi Everyone,
We have a requirement to automate our entire infrastructure build using vRO. On a bare minimum below are the list of things we would like to achieve.
1. Automated ESXI installation using vRO (SAN boot).
2. The Hardware is CISCO UCS blades.
What is the best suitable option that helps us to achieve the same. If anyone can guide us on the components that are needed it would be really helpful.
Thanks
Sandeep
Get a List of all NSX Firewall Sections in VRO ?
Hi Guys,
I'd like to get a list with all the NSX Layer3 Firewall sections using API in a VRO workflow.
I didn't find a way in REST to get the list of all firewall Sections. Instead, you need to pass the name of the section to get it.
I also tried to get that with the NSX API using:
NSXAppFirewallManager.getAllFirewallSections(nsxConnection)
but I got an error and don't understand what I'm missing there.
The error was : Unable to build Firewall Section for Inventory.
Any better way to do achieve that ?
Regards,
Thanks, Sylvain
vRO 7.3 Update Manager 6.5 plugin
Hello all.
i searched the forum and the download areas for a vum 6.5 plugin for Orchestrator 7.3. Nothing came up. Is there already a plugin for automating VUM 6.5 ?
Thanks in advance for your assistance.
Regards,
Alex
Workflow to request an available IP from Infoblox/IPAM.
I am looking at creating a workflow to request an available IP address from an InfoBlox / IPAM environment. Essentially, the user would select the network (as an Input param), and the workflow would supply and reserve the available IP address. What would be the process in accomplishing this. We currently have the Infoblox appliance as an endpoint and configured for various vLANS.
vRO Update Manager - Remediation Async or not - differences
Hello in the vRO UM plugin there are two WF called:
Remediate
Remediate Asynchronously
When executing they look the same, what is the difference between them? Does one update all ESXi hosts in series while the other in parallel?
vRO and UM patching a vCluster
Hello, unfortunately I don't avail of a test environment as yet and I'm a little worried about launching vRO WF to patch an entire vCluster through UM. In the UM gui there is the possibility to tell the app to update x number of ESXi hosts at one time or let the app decide. How does it work in the vRO WF. I see the "Remediation asynchronously" which is probably the best choice, but what is the criteria it adopts when selecting hosts and set them in maintenance mode? Is it one by one or ?
SSH Execute Timeout
Hellow there,
I'm using "Run SSH command" Library workflow but some of my VMs are in a bad state and workflow is stuck on "Execute SSH Command" right after "Executing 'uptime' using encoding 'Default System Encoding'" for a very long time. Is there a way to set a timout on this execute?
Any help is appreciated. Thanks.
Eugen
Read/Write Resource element not using a file
Page 18 of the vRO Coding Guide (ver 1.0) says
-----
Possibly use a CompositeType, or if it is really meant for internal use then you can save the Properties object as a Resource Element
-----
I cannot find any way to write a JS object into a Resource Element. Nor for that matter, to read it back as an object. I find lots of ways to read/write files to a Resource Element, just not objects as the coding guide states. Can anyone help me?
Thanks,
Carl L.
Oh, and if anyone is interested, the coding guide is here:
https://docs.vmware.com/en/vRealize-Automation/7.3/vrealize_orchestrator_coding_design_guide.pdf
stop workflow if value does not exist
Hello,
actually, in a workflow access to an api object property stop the workflow if the object does not exist
in an inventory workflow I would like the workflow to continue to run even if the object does not exist and give an empty value as result
is that possible without having to code exception for each property in javascript ?
Find workflow name by ID / KB 2144484 not working [vRO 7.3]
I need to find a workflow by ID. The method described in KB 2144484 (http://kb.vmware.com/kb/2144484) doesn't work. From IE I get "Can't reach this page" browsing to either "https://<vRO>:8281/vco/api/workflows" or "https://<vRO>:8281" with either FQHN or IP address. If I browse to "https://<vRO>" I get the vRA banner page and from here I can successfully launch the Orchestrator client or browse to Control Center.
I'm sure this is dead simple but I am stuck.